From: Kev Jackson Date: 2005-11-04T16:33:33+09:00 Subject: instantiating one of each object type 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.send(:new) # 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