From: Gavin Sinclair Date: 2002-12-21T18:08:52+09:00 Subject: Re: String#to_class? From: "Tim Bates" > > 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 Are you ready, Tim? This could hardly be easier. Are you sitting down? klass = eval $1 :) Cheers, Gavin