Add a constant to the module:
module Foo Logger = Logger.new class A class B class C ... class Z end
Then you can do Logger.log('blah') in your classes. Since we are obscuring the global Logger constant with Foo::Logger , this means that if you want to access the Logger class in the Foo module, you must use the scope permission: ::Logger .
Pesto source share