From: La Wi Date: 2011-12-04T04:49:36+09:00 Subject: Re: Dynamic instances of a class. Oops, I didn't take into account the format of your data file, in which the first line is not data but headings. So here's a refinement: def Motorcycle.getMany(filename) File.new(filename).readlines[1..-1].map{ |line| Motorcycle.new( line.split( ',' ) ) } end -- Posted via http://www.ruby-forum.com/.