Say I have a CSV file with 4 fields,
ID,name,pay,age
and about 32,000 records.
What’s the best way to stick this into a hash in Ruby?
In other words, an example record would look like:
{:rec1 => {:id=>”00001″, :name => “Bob”, :pay => 150, :age => 95 } }
Thanks for the help!
You can use the
Excelsiorrubygem for this: