From: "Andres M." Date: 2011-12-04T11:08:15+09:00 Subject: Re: Dynamic instances of a class. La Wi wrote in post #1034939: > 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 wow thanks this really is light in the empty void of my ignorance, i'll give it a try now, im guessing that if i change the line ".readlines[1..-1]" for something like ".readlines[2..-1]" it will start on the second line of my file, well any way i'll try it out now and share my results. PD: About your problem, i really can't help you there, not really and expert on that regard but really wish you luck, if i stumble upon something related i'll let you know :D. -- Posted via http://www.ruby-forum.com/.