From: Raj pal Date: 2013-04-05T20:54:41+09:00 Subject: Re: question on watir select {|key, value| block} → a_hash click to toggle source select → an_enumerator Returns a new hash consisting of entries for which the block returns true. If no block is given, an enumerator is returned instead. h = { "a" => 100, "b" => 200, "c" => 300 } h.select {|k,v| k > "a"} #=> {"b" => 200, "c" => 300} h.select {|k,v| v < 200} #=> {"a" => 100} This is from Ruby Documentation, See this is returning the Hash,not array,isn't it? RAJ -- Posted via http://www.ruby-forum.com/.