End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Platform.match_platforms?
match_platforms?(platform, platforms)
lib/rubygems/platform.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/platform.rb, line 24
def self.match_platforms?(platform, platforms)
platforms.any? do |local_platform|
platform.nil? or
local_platform == platform or
(local_platform != Gem::Platform::RUBY and local_platform =~ platform)
end
end
No documentation available