lib/rley/ptree/token_range.rb in rley-0.1.12 vs lib/rley/ptree/token_range.rb in rley-0.2.00
- old
+ new
@@ -20,9 +20,11 @@
case other
when Hash
result = low == other[:low] && high == other[:high]
when TokenRange
result = low == other.low && high == other.high
+ when Array
+ result = low == other[0] && high == other[1]
end
return result
end