new (Gem::DependencyInstaller)

    # File lib/rubygems/dependency_installer.rb, line 47
      def initialize(options = {})
        if options[:install_dir] and not options[:default_source_index] then
          spec_dir = options[:install_dir], 'specifications'
          @source_index = Gem::SourceIndex.from_gems_in spec_dir
        else
          @source_index = Gem.source_index
        end

        options = DEFAULT_OPTIONS.merge options

        @bin_dir = options[:bin_dir]
        @development = options[:development]
        @domain = options[:domain]
        @env_shebang = options[:env_shebang]
        @force = options[:force]
        @format_executable = options[:format_executable]
        @ignore_dependencies = options[:ignore_dependencies]
        @prerelease = options[:prerelease]
        @security_policy = options[:security_policy]
        @user_install = options[:user_install]
        @wrappers = options[:wrappers]
        @skip_dependencies = options[:skip_dependencies]

        @installed_gems = []

        @install_dir = options[:install_dir] || Gem.dir
        @cache_dir = options[:cache_dir] || @install_dir
      end