class Hamster::SortedSet
def eql?(other)
-
(Boolean)
-
Parameters:
-
other
(Object
) -- The object to compare with
def eql?(other) return true if other.equal?(self) return false if not instance_of?(other.class) return false if size != other.size a, b = self.to_enum, other.to_enum while true return false if !a.next.eql?(b.next) end rescue StopIteration true end