class method
Gem::Platform.match_gem?
match_gem?(platform, gem_name)
lib/rubygems/platform.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/platform.rb, line 37
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
See also
.local
.match_platforms?
.installable?
.match_spec?
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0