Module: DeepCover::KernelAutoloadOverride

Extended by:
ModuleOverride
Defined in:
lib/deep_cover/core_ext/autoload_overrides.rb

Instance Attribute Summary

Attributes included from ModuleOverride

#overriden_modules

Instance Method Summary collapse

Methods included from ModuleOverride

active=, each, override

Instance Method Details

#autoload(name, path) ⇒ Object



87
88
89
90
91
# File 'lib/deep_cover/core_ext/autoload_overrides.rb', line 87

def autoload(name, path)
  mod = binding.of_caller(1).eval('Module.nesting').first || Object
  autoload_path = DeepCover.autoload_tracker.autoload_path_for(mod, name, path)
  mod.autoload_without_deep_cover(name, autoload_path)
end