From: Yossef Mendelssohn Date: 2011-11-16T06:15:33+09:00 Subject: Re: search through a csv file On Nov 15, 2:14 pm, Jeremy Hinegardner wrote: > >       matches = csv.find_all do |row| >         match = true >         search_criteria.keys.each do |key| >           match = match && ( row[key] == search_criteria[key] ) >         end >         match >       end search_criteria.all? { |k, v| row[k] == v } I actually had to check out Hash#all? to see if it worked the way I thought. I've never had a reason to use it before. -- -yossef