lib/jsonpath/enumerable.rb in jsonpath-0.2.3 vs lib/jsonpath/enumerable.rb in jsonpath-0.3.0
- old
+ new
@@ -40,10 +40,9 @@
(start_idx..end_idx).step(step) {|i| each(node[i], pos + 1, &blk)}
end
end
end
else
- #p "#{node.inspect} ---> node #{@path[pos]}"
blk.call(node) if pos == (@path.size - 1) && node && eval("node #{@path[pos]}")
end
if pos > 0 && @path[pos-1] == '..'
case node