lib/rley/parser/parse_state.rb in rley-0.7.02 vs lib/rley/parser/parse_state.rb in rley-0.7.03
- old
+ new
@@ -12,10 +12,10 @@
@origin = theOrigin
end
# Equality comparison. A parse state behaves as a value object.
def ==(other)
- return true if object_id == other.object_id
+ return true if equal?(other)
result = (dotted_rule == other.dotted_rule) &&
(origin == other.origin)
return result