From: Robert Klemme Date: 2006-11-21T00:45:10+09:00 Subject: Re: Create array of hash values On 20.11.2006 16:33, David Lelong wrote: > Hi, > > I have a hash that contains the following keys/values: > > [#"4"}>, > #"8"}>] Actually it seems you rather have an Array of Contatc_List instances. > I want to create an array containing the contact_id values. What's an > easy way to do this? your_array.map {|cl| cl.attributes["contact_id"]} Regards robert