new (Gem::Indexer)

    # File lib/rubygems/indexer.rb, line 29
      def initialize(directory)
        unless ''.respond_to? :to_xs then
          fail "Gem::Indexer requires that the XML Builder library be installed:" \
               "\n\tgem install builder"
        end

        @dest_directory = directory
        @directory = File.join Dir.tmpdir, "gem_generate_index_#{$$}"

        marshal_name = "Marshal.#{Gem.marshal_version}"

        @master_index = Gem::Indexer::MasterIndexBuilder.new "yaml", @directory
        @marshal_index = Gem::Indexer::MarshalIndexBuilder.new marshal_name, @directory
        @quick_index = Gem::Indexer::QuickIndexBuilder.new "index", @directory
      end