Module: AutoReloader::RequireOverride
- Defined in:
- lib/auto_reloader.rb
Instance Method Summary collapse
Instance Method Details
#require(path) ⇒ Object
26 27 28 |
# File 'lib/auto_reloader.rb', line 26 def require(path) AutoReloader.instance.require(path) { super } end |
#require_relative(path) ⇒ Object
30 31 32 33 34 |
# File 'lib/auto_reloader.rb', line 30 def require_relative(path) from = caller.first.split(':', 2)[0] fullpath = File. File.join File.dirname(caller.first), path AutoReloader.instance.require_relative path, fullpath end |