In Files

  • rubygems/resolver/lock_set.rb

Class/Module Index [+]

Quicksearch

Gem::Resolver::LockSet

A set of gems from a gem dependencies lockfile.

Public Class Methods

new(source) click to toggle source

Creates a new LockSet from the given source

 
               # File rubygems/resolver/lock_set.rb, line 11
def initialize source
  @source = Gem::Source::Lock.new source
  @specs  = []
end
            

Public Instance Methods

find_all(req) click to toggle source

Returns an Array of IndexSpecification objects matching the DependencyRequest req.

 
               # File rubygems/resolver/lock_set.rb, line 39
def find_all req
  @specs.select do |spec|
    req.matches_spec? spec
  end
end