From: gga Date: 2007-01-21T22:45:07+09:00 Subject: Re: Hash pairs at? gga wrote: > Trans ha escrito: > > Seesm like there should be a mehtod for this: > > No. > That being said, Hash DOES seem to be buggy and missing a proper find_all method. irb> h.find_all { |k,v| [:a,:c].include?(k) } => [[:c, 3], [:a, 1]] # incorrect, it is returning an array, not a hash irb> h.reject { |k,v| ![:a,:c].include?(k) } {:c=>3, :a=>1} # correct