assuming i got this input .txt
10000, 150
345, 32
When i have initialized from an input file into a class like this:
class A
def initialize(b,c)
@b = b
@c = c
end
end
input = File.open("data", "r")
input.each do |line|
l = line.split(',')
arr << A.new(l[0], l[1])
end
p arr
i get this output [#A:0x00000002816440 @b="10000", @c=" 150">
how can i get it to an array like this
[[10000, 150][345, 32]]
class Ato have the string versions of the params, or is it part of exploring how to get the end result?