From: Wes Gamble Date: 2007-02-23T06:21:37+09:00 Subject: Best way to get a class object from its name? All, In my Rails app., I'm doing something like this: eval("#{requested_controller_class}.respond_to?('session_data_not_needed_by?')") where requested_controller_class is the name of an existing (controller) class. Is the above code the best of way of invoking respond_to? on the class in question, or is there some better way to get the actual class object based solely on it's name? Thanks, Wes -- Posted via http://www.ruby-forum.com/.