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?