From: Pete Hodgson [mailto:phodgson / lyris.com] 
# people_map = people_array.to_map{ |x| x.name }

you should try it,

>> people_array.map{ |p| p.name }
=> ["bob", "dave", "jane"]