From: Bill Date: 2005-06-05T22:05:25+09:00 Subject: Creating objects from strings. Hi, I'm a Java programmer that is trying to learn Ruby. I'm trying to write a container that creates objects on the fly from a descriptor. In Java I'd simply do Class.forName("MyClass").newInstance(); Is there an easy way to do this in Ruby? I basically want a loader that I can call Loader.createObject(filename, classname) where filename is the name of the ruby file containing the class and classname is the actual class. Also, since I'll be creating more than one instance of each class, how do I store the class instance? TIA. Bill.