lib/predicate/nodes/native.rb in predicate-1.1.3 vs lib/predicate/nodes/native.rb in predicate-1.2.0
- old
+ new
@@ -8,13 +8,21 @@
def proc
self[1]
end
+ # overriden because parent relies on free_variables,
+ # which raises an exception
def and_split(attr_list)
# I possibly make references to those attributes, so
# I can't be P2
[ self, tautology ]
+ end
+
+ # overriden because parent relies on free_variables,
+ # which raises an exception
+ def attr_split
+ { nil => self }
end
def to_ruby_code(scope = 't')
if proc.respond_to?(:source_code)
code = proc.source_code