method

get_primary_gems

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: CleanupCommand
get_primary_gems() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/cleanup_command.rb, line 136
  def get_primary_gems
    @primary_gems = {}

    Gem::Specification.each do |spec|
      if @primary_gems[spec.name].nil? or
         @primary_gems[spec.name].version < spec.version then
        @primary_gems[spec.name] = spec
      end
    end
  end
Register or log in to add new notes.