lib/predicate/nodes/intersect.rb in predicate-1.2.0 vs lib/predicate/nodes/intersect.rb in predicate-1.3.0
- old
+ new
@@ -20,7 +20,12 @@
def constant_variables
values.size == 1 ? free_variables : []
end
+ def evaluate(tuple)
+ t_x = left.evaluate(tuple)
+ t_x && !(tx & right.evaluate(tuple)).empty?
+ end
+
end
end