End of Life Ruby 3.1 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.1.3/lib/rubygems/platform.rb, line 24
def self.match_platforms?(platform, platforms)
platform = Gem::Platform.new(platform) unless platform.is_a?(Gem::Platform)
platforms.any? do |local_platform|
platform.nil? ||
local_platform == platform ||
(local_platform != Gem::Platform::RUBY && platform =~ local_platform)
end
end
No documentation available