From: Phillip Gawlowski Date: 2010-12-04T00:44:41+09:00 Subject: Re: cast object to object On Fri, Dec 3, 2010 at 4:39 PM, David E. wrote: > Yeah maybe the string confused things. I don't want to even convert to > string. > > The value in string is the "human name" of the class i want to convert > it to. > > So i'm converting a string into an object of class type of the string > value. > > So convert "Dave" into an object of type Dave() So, you want to do something like: name_of_my_class.gets name_of_my_class.to_class # Create a class out of the user input Correct? And I assume a case or if statement doesn't cover all the situations you want to do that in, also correct? -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.