lib/hamster/stack.rb in hamster-0.3.3 vs lib/hamster/stack.rb in hamster-0.3.4

- old
+ new

@@ -49,12 +49,10 @@ def clear EmptyStack end def eql?(other) - return true if other.equal?(self) - return false unless other.class.equal?(self.class) - @list.eql?(other.instance_eval{@list}) + instance_of?(other.class) && @list.eql?(other.instance_variable_get(:@list)) end def_delegator :self, :eql?, :== def to_a @list.to_a