From: jbw Date: 2010-04-02T20:33:19+09:00 Subject: Re: Fill a table in ruby --00032555a97e791e2904833f402e Content-Type: text/plain; charset=UTF-8 Sounds like a matrix class might work for you http://ruby-doc.org/stdlib/libdoc/matrix/rdoc/classes/Matrix.html On Fri, Apr 2, 2010 at 12:10 PM, Brk Anl wrote: > Hi, > > I want to read the datas from a file and fill a table with them. > All lines will be a new row for table. And the columns are for the > variables of the class. > > I want to create an array as an object of a class for this. But i don't > know how to do it. > > Class Abc > @a > @b > .... > > end > > a[100]=Abc.new() > > so for example a[0] will be the first row of the table and a[0].a will > be the first column of the table > > i want to do sth like that. > > How can i do it? Or is there another way to fill a table in ruby? > -- > Posted via http://www.ruby-forum.com/. > > -- jbw --00032555a97e791e2904833f402e--