Module: Onload::KernelLoadPatch
- Included in:
- Kernel
- Defined in:
- lib/onload/core_ext/kernel.rb
Instance Method Summary collapse
Instance Method Details
#load(file, *args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/onload/core_ext/kernel.rb', line 5 def load(file, *args) # ActiveSupport::Dependencies adds an extra .rb to the end if Onload.process?(file.chomp('.rb')) file = file.chomp('.rb') end if Onload.process?(file) && Onload.enabled? f = Onload::File.new(file) f.write return super(f.outfile, *args) end super(file, *args) end |