Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::NameTuple#eql?
eql?(other)
lib/rubygems/name_tuple.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/name_tuple.rb, line 142
def ==(other)
case other
when self.class
@name == other.name &&
@version == other.version &&
@platform == other.platform &&
@content_address == other.content_address &&
@ruby_abi == other.ruby_abi
when Array
to_a == other
else
false
end
end
Alias of #==
Compare with other. Supports another NameTuple or an Array in the [name, version, platform, content_address, ruby_abi] format.