polish ruby/merge_to_square_brackets snippet