class method
Gem::Platform.match_platforms?
match_platforms?(platform, platforms)
lib/rubygems/platform.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/platform.rb, line 22
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