Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Set::SubclassCompatible#==
==(other)
lib/set/subclass_compatible.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/set/subclass_compatible.rb, line 277
def ==(other)
if self.equal?(other)
true
elsif other.instance_of?(self.class)
super
elsif other.is_a?(Set) && self.size == other.size
other.all? { |o| include?(o) }
else
false
end
end
No documentation available