# File lib/rubygems/custom_require.rb, line 51
    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(spec)
      end
    end