# File lib/rubygems.rb, line 1010 def self.loaded_path? path # TODO: ruby needs a feature to let us query what's loaded in 1.8 and 1.9 re = /(^|\/)#{Regexp.escape path}#{Regexp.union(*Gem.suffixes)}$/ $LOADED_FEATURES.any? { |s| s =~ re } end