class Gem::Source::Installed

Public Class Methods

new() click to toggle source
# File lib/rubygems/source/installed.rb, line 3
def initialize
end

Public Instance Methods

<=>(other) click to toggle source

Installed sources sort before all other sources

# File lib/rubygems/source/installed.rb, line 9
def <=> other
  case other
  when Gem::Source::Installed then
    0
  when Gem::Source then
    1
  else
    nil
  end
end
download(spec, path) click to toggle source

We don't need to download an installed gem

# File lib/rubygems/source/installed.rb, line 23
def download spec, path
  nil
end