The difference between Enumerable#each and Enumerable#map is whether it returns the receiver or the mapped result. Getting back to the receiver is
Enumerable#each
Enumerable#map
The choice between map or each should be decided by the desired end result: a new array or no new array. The result of map can be huge and/or silly:
map
each
p ("aaaa".."zzzz").map{|word| puts word} #huge and useless array of nil's