From: Joel VanderWerf Date: 2002-03-10T05:55:19+09:00 Subject: Re: What classes exist David Corbin wrote: > At the moment, I'm having problem with #2. In Java, you can do > Class.forName("Foo") to see get a Class object for class Foo. The ruby > Class class doesn't seem to have this capability. In Ruby, it's just a constant lookup, not a method specific to Class: Object.const_get("String") # ==> String For nested classes: class A class B end end A.const_get(:B) # note that symbols work as well as strings # ==> A::B