Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Platform#==
(untyped other) -> bool
==(other)
lib/rubygems/platform.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/platform.rb, line 173
def ==(other)
self.class === other && to_a == other.to_a
end
Is other equal to this platform? Two platforms are equal if they have the same CPU, OS and version.