method
loaded_path?
v1_9_3_125 -
Show latest stable
- Class:
Gem
loaded_path?(path)public
No documentation available.
# File lib/rubygems.rb, line 988
def self.loaded_path? path
# TODO: ruby needs a feature to let us query what's loaded in 1.8 and 1.9
$LOADED_FEATURES.find { |s|
s =~ /(^|\/)#{Regexp.escape path}#{Regexp.union(*Gem.suffixes)}$/
}
end