Class: Gem::Resolver::LockSet
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Set
|
|
Instance Chain:
self,
Set
|
|
Inherits: |
Gem::Resolver::Set
|
Defined in: | lib/rubygems/resolver/lock_set.rb |
Overview
A set of gems from a gem dependencies lockfile.
Class Method Summary
-
.new(sources) ⇒ LockSet
constructor
Creates a new
LockSet
from the given Gem.sources
Instance Attribute Summary
Set - Inherited
#errors | Errors encountered when resolving gems. |
#prerelease | When true, allows matching of requests to prerelease gems. |
#remote | Set to true to disable network access for this set. |
Instance Method Summary
-
#find_all(req)
Returns an Array of IndexSpecification objects matching the DependencyRequest
req
.
Set - Inherited
Constructor Details
.new(sources) ⇒ LockSet
Creates a new LockSet
from the given Gem.sources
Instance Method Details
#find_all(req)
Returns an Array of IndexSpecification objects matching the DependencyRequest req
.
# File 'lib/rubygems/resolver/lock_set.rb', line 45
def find_all req @specs.select do |spec| req.match? spec end end