Personally I'd do: c_ids=[] for l in @attributes.values c_ids << l end David Lelong wrote: > Hi, > > I have a hash that contains the following keys/values: > > [#<Contact_List:0x2607150 @attributes={"contact_id"=>"4"}>, > #<Contact_List:0x2607114 @attributes={"contact_id"=>"8"}>] > > I want to create an array containing the contact_id values. What's an > easy way to do this? > > Thanks, > > David > > -- > Posted via http://www.ruby-forum.com/.