hoge = ['a', 'b'] hoge.map(&:upcase)=> ['A', 'B']
Abbreviation notation is convenient!
Recommended Posts