From: "David E." Date: 2010-12-04T00:27:29+09:00 Subject: cast object to object So I have an object of class (user defined) Dave() and Dave2() This may seem totally assuming, but I have a string that I get. It will either be "Dave" or "Dave2". Is there a way to if string=="Dave" (Dave)string.theMethod() else (Dave2)string.theMethod() end I know, again, I am taking a lot for granted, but in Python I was able to do this sort of thing... And of course in Java... -- Posted via http://www.ruby-forum.com/.