lib/modulation/module_mixin.rb
def __expose!
      singleton = singleton_class

      singleton.private_instance_methods.each do |sym|
        singleton.send(:public, sym)
      end
      
      __module_info[:private_constants].each do |sym|
        const_set(sym, singleton.const_get(sym))
      end

      self
    end
def __expose!
      singleton = singleton_class

      singleton.private_instance_methods.each do |sym|
        singleton.send(:public, sym)
      end
      
      __module_info[:private_constants].each do |sym|
        const_set(sym, singleton.const_get(sym))
      end

      self
    end
def __expose! singleton = singleton_class singleton . private_instance_methods . each do | sym | singleton . send ( :public , sym ) end __module_info [ :private_constants ] . each do | sym | const_set ( sym , singleton . const_get ( sym ) ) end self end
Exposes all private methods and private constants as public
 @return [Module] self
Exposes all private methods and private constants as public