Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::SpecFetcher#detect
detect(type = :complete) { |tup| ... }
lib/rubygems/spec_fetcher.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/spec_fetcher.rb, line 140
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
#decode_content_addressable_tuples
#search_for_dependency
#available_specs
#spec_for_dependency
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0