I'm not sure what you're asking, but if you are inside of module Foo and you reference class Bar, then ruby will look for Foo::Bar. To look just for Bar, you should reference ::Bar (of course, this Bar should be defined in "global" scope, outside of Foo).