From: Tim Bates Date: 2002-12-21T18:00:31+09:00 Subject: String#to_class? I have a class being used in a unit test: TC_Foo I match it against a regexp: /TC_(.*)/.match(self.class.name) I end up with a string ($1 == "Foo") which I want to be an instance of Class (== Foo). How can I convert a String to a Class? Will I have to use ObjectSpace to find a Class whose Class#name == "Foo"? Tim Bates -- tim@bates.id.au