A set of gems from a gem dependencies lockfile.

Methods
F
N
Class Public methods
new(source)

Creates a new LockSet from the given source

# File lib/rubygems/resolver/lock_set.rb, line 11
def initialize source
  super()

  @source = Gem::Source::Lock.new source
  @specs  = []
end
Instance Public methods
find_all(req)

Returns an Array of IndexSpecification objects matching the DependencyRequest req.

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