    # File lib/rubygems/defaults.rb, line 10
      def self.default_dir
        if defined? RUBY_FRAMEWORK_VERSION then
          File.join File.dirname(ConfigMap[:sitedir]), 'Gems',
                    ConfigMap[:ruby_version]
        elsif defined? RUBY_ENGINE then
          File.join ConfigMap[:libdir], RUBY_ENGINE, 'gems',
                    ConfigMap[:ruby_version]
        else
          File.join ConfigMap[:libdir], 'ruby', 'gems', ConfigMap[:ruby_version]
        end
      end