# File lib/rubygems/gem_path_searcher.rb, line 16 def initialize # We want a record of all the installed gemspecs, in the order # we wish to examine them. @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