James Gray
1/5/2007 11:42:00 PM
On Jan 5, 2007, at 3:23 PM, Jon Egil Strand wrote:
> -------------------------------------------------
> TO
> -------------------------------------------------
> people = Array.new
> FCSV(data, :col_sep => ";",
> :headers => true,
> :header_converters => :symbol ) do |csv|
> csv.each do |csvrow|
> people.push OpenStruct.new(csvrow.to_hash)
> end
> end
>
> people.each do |person|
> puts person.first_name
> end
> -------------------------------------------------
>
> Not meaning to bash your suggestion, just sharing my initial
> reaction. Any comments or caveats?
Your code looks just fine to me. Glad it helps!
James Edward Gray II