jantzeno
8/14/2007 9:24:00 PM
I have a few questions about class instantiation.
Say I have a class:
class Person
attr_accessor :name, :age
end
And an array:
names = ["john", "jane"]
Is it possible to instantiate a class using a string from the array so
I get something equal to:
john = Person.new
jane = Person.new
v/r,