instance method
Gem::SpecFetcher#detect
detect(type = :complete) { |tup| ... }
lib/rubygems/spec_fetcher.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/spec_fetcher.rb, line 133
def detect(type = :complete)
tuples = []
list, _ = available_specs(type)
list.each do |source, specs|
specs.each do |tup|
if yield(tup)
tuples << [tup, source]
end
end
end
tuples
end
Return all gem name tuples who’s names match obj
See also
#available_specs
#search_for_dependency
.new
#spec_for_dependency
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0