class Gem::Resolver::LockSet
来自 gem 依赖锁文件的一组 gem。
公共类方法
源码
# 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::new
公共实例方法
源码
# File lib/rubygems/resolver/lock_set.rb, line 44 def find_all(req) @specs.select do |spec| req.match? spec end end
返回一个匹配 DependencyRequest req
的 IndexSpecification 对象 Array
。