Module: Kernel
- Defined in:
- lib/picky/platforms/macruby.rb
Instance Method Summary collapse
Instance Method Details
#require_relative(relative_feature) ⇒ Object
8 9 10 11 12 |
# File 'lib/picky/platforms/macruby.rb', line 8 def require_relative relative_feature file = caller.first.split(/:\d/,2).first raise LoadError, "require_relative is called in #{$1}" if /\A\((.*)\)/ =~ file require File. relative_feature, File.dirname(file) end |