Module: Kernel
- Defined in:
- lib/require_relative_patch.rb
Instance Method Summary collapse
Instance Method Details
#require_relative(path) ⇒ Object
2 3 4 |
# File 'lib/require_relative_patch.rb', line 2 def require_relative(path) require File.join(File.dirname(caller[0]), path.to_str) end |