K
Kev Jackson
Hi all,
I want to create an array of one of each class in ruby for testing
purposes in pseudo-code I kind of want...
ObjectSpace.each_object(Class) do |c|
c.sendnew) # I want to instantiate here and store the resulting
objects in an array
end
Ok so I can half do it, but I need to dynamically send the correct
arguments for each objects initialize method - any good ideas?
Kev
I want to create an array of one of each class in ruby for testing
purposes in pseudo-code I kind of want...
ObjectSpace.each_object(Class) do |c|
c.sendnew) # I want to instantiate here and store the resulting
objects in an array
end
Ok so I can half do it, but I need to dynamically send the correct
arguments for each objects initialize method - any good ideas?
Kev