Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Dependency#matching_specs
matching_specs(platform_only = false)
lib/rubygems/dependency.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/dependency.rb, line 273
def matching_specs(platform_only = false)
matches = Gem::Specification.find_all_by_name(name, requirement)
if platform_only
matches.reject! do |spec|
spec.nil? || !Gem::Platform.match_spec?(spec)
end
end
matches.reject(&:ignored?)
end
No documentation available