class Gem::Resolver::LockSet
来自 gem 依赖锁定文件的 gem 集合。
Public Class Methods
Source
# File lib/rubygems/resolver/lock_set.rb, line 12 def initialize(sources) super() @sources = sources.map do |source| Gem::Source::Lock.new source end @specs = [] end
从给定的 sources 创建一个新的 LockSet
调用超类方法
BasicObject::newPublic Instance Methods
Source
# File lib/rubygems/resolver/lock_set.rb, line 44 def find_all(req) @specs.select do |spec| req.match? spec end end
返回一个 Array,其中包含与 DependencyRequest req 匹配的 IndexSpecification 对象。