I have some existing ruby classes in a app/classes folder:
class A ... end class B ... end
I\'d like to group those classes in a mod
Use the const_missing hook. If the constant can't be found in the current module, try to resolve in the global namespace:
const_missing
class A; end class B; end module M def self.const_missing(c) Object.const_get(c) end end M::A.new M::B.new