Platform: Windows / Linux
Last update: June 27, 2007
The question of how to get a class by name comes up with some regularity on the ruby-talk and rails mailing lists. The first response is usually to use Object::const_get.
The response to that is that it doesn't handle classes within namespaces, e.g. Foo::Bar. I might argue that Object::const_get("Foo::Bar") should do the right thing and retrieve the value of Bar from the Foo class/module, but the fact of the matter is that it does not.
Kernel#qualified_const_get Script Download Notice
Top 4 Download periodically updates information of Kernel#qualified_const_get script from the developer, but some information may be slightly out-of-date.
Our script download links are directly from our mirrors or publisher's website. Kernel#qualified_const_get torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!