lib/hamster/tuple.rb in hamster-0.2.5 vs lib/hamster/tuple.rb in hamster-0.2.6
- old
+ new
@@ -16,9 +16,16 @@
def last
@items.last
end
+ def eql?(other)
+ return true if other.equal?(self)
+ return false unless other.class.equal?(self.class)
+ @items.eql?(other.instance_eval{@items})
+ end
+ def_delegator :self, :eql?, :==
+
def dup
self
end
def_delegator :self, :dup, :clone