Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Platform.match_gem?
match_gem?(platform, gem_name)
lib/rubygems/platform.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/platform.rb, line 48
def self.match_gem?(platform, gem_name)
raise "Not a string: #{gem_name.inspect}" unless String === gem_name
if REUSE_AS_BINARY_ON_TRUFFLERUBY.include?(gem_name)
match_platforms?(platform, [Gem::Platform::RUBY, Gem::Platform.local])
else
match_platforms?(platform, Gem.platforms)
end
end
No documentation available