Module: Kernel

Defined in:
lib/reverse_require/extensions/kernel.rb

Instance Method Summary collapse

Instance Method Details

#reverse_require(ruby_gem, sub_path) ⇒ Object

Requires certain files from the gems which depend on the specified ruby_gem and contain the specified sub_path. If no gems contain the specified sub_path, false will be returned.



10
11
12
# File 'lib/reverse_require/extensions/kernel.rb', line 10

def reverse_require(ruby_gem,sub_path)
  ReverseRequire.require_for(ReverseRequire.gems_of(ruby_gem),sub_path)
end