Module: Loader::AutoLoad::ModulePatch

Defined in:
lib/loader/autoload/module_patch.rb

Instance Method Summary collapse

Instance Method Details

#const_missing(name) ⇒ Object



3
4
5
6
7
8
# File 'lib/loader/autoload/module_patch.rb', line 3

def const_missing(name)
  c = Loader::AutoLoad::Fetcher
  c.try_load_by(self,name)
  constant = c.try_fetch_constant(self, name)
  constant ? constant : super
end