From: Dave Burt Date: 2006-06-08T11:59:45+09:00 Subject: Re: Using a string to find a class Pat Maddox wrote: > I've got a string, and I want to find out if there's a class with that > name. So something like > > class_exists? "Foo" > > and then I can eval it if it does, I guess. Or is there a better way > than eval in that case? At any rate, I just want to be able to take a > string and find out if there's a class with that name or not. module.const_get "Foo" # or just const_get "Foo" Cheers, Dave