From: Daniel Berger Date: 2002-07-26T23:14:00+09:00 Subject: dynamic object creation Hi all, I couldn't quite find the answer I was looking for on Google (though it's probably there somewhere), so I'll pose the question here. I have a situation where the class and module names are identical. I want to dynamically generate an object based on a string. m = "TestClass" require "#{m}" t = eval "#{m}.new" This works, but I'm wondering if there's a more "graceful" approach. Thanks in advance. Regards, Dan