Class: Gem::Source::Local (Ruby 2.3.4)

In Files

  • rubygems/source/local.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Gem::Source::Local

frozen_string_literal: true

The local source finds gems in the current directory for fulfilling dependencies.

Public Instance Methods

<=>(other)

Local sorts before Gem::Source and after Gem::Source::Installed

 
               # File rubygems/source/local.rb, line 17
def <=> other
  case other
  when Gem::Source::Installed,
       Gem::Source::Lock then
    -1
  when Gem::Source::Local then
    0
  when Gem::Source then
    1
  else
    nil
  end
end