From: botp Date: 2011-10-12T02:44:04+09:00 Subject: Re: array of hashes On Wed, Oct 12, 2011 at 1:07 AM, Mario Ruiz wrote: > and I would like to get a value of the array knowing the :name by doing a.find{|x| x[:name]=="pedro"}[:value] #=> "lsss" but why not directly use a hash, eg, h={} #=> {} h["mario"]="xxx" #=> "xxx" h["pedro"]="lsss" #=> "lsss" h["pedro"] #=> "lsss" kind regards -botp