sheet.each do |record|
if (record['DataSet'] == dataSet)
    return record
end
end

hi,
    I am trying to find the data with hash, can you re-write the 
statement without any loop using any of the predefined method in ruby?

RAJ

-- 
Posted via http://www.ruby-forum.com/.