# File lib/rubygems/gem_path_searcher.rb, line 13 def initialize # We want a record of all the installed gemspecs, in the order we wish to # examine them. # TODO: remove this stupid method @gemspecs = init_gemspecs # Map gem spec to glob of full require_path directories. Preparing this # information may speed up searches later. @lib_dirs = {} @gemspecs.each do |spec| @lib_dirs[spec.object_id] = lib_dirs_for spec end end