I may be late to the party, since it seems like you've already solved the problem, but Ruby has a const_missing method, which works just like method_missing. You could use it to search for constants in various places. http://www.ruby-doc.org/core/classes/Module.html#M000489 -- Matma Rex