Added Ruby array sum snippet.