Module: Predicate::Native
- Includes:
- Expr
- Defined in:
- lib/predicate/nodes/native.rb
Constant Summary
Constants included from Expr
Instance Method Summary collapse
-
#and_split(attr_list) ⇒ Object
overriden because parent relies on free_variables, which raises an exception.
-
#attr_split ⇒ Object
overriden because parent relies on free_variables, which raises an exception.
- #evaluate(tuple) ⇒ Object
- #free_variables ⇒ Object
- #priority ⇒ Object
- #proc ⇒ Object
Methods included from Expr
#!, #&, #constant_variables, #constants, #contradiction?, #dyadic_priority, #identifier?, #literal?, #opaque?, #qualify, #rename, #sexpr, #tautology?, #to_s, #to_sequel, #|
Methods included from Factory
#and, #between, #comp, #contradiction, #from_hash, #identifier, #in, #intersect, #literal, #match, #native, #not, #opaque, #or, #qualified_identifier, #tautology
Instance Method Details
#and_split(attr_list) ⇒ Object
overriden because parent relies on free_variables, which raises an exception
15 16 17 18 19 |
# File 'lib/predicate/nodes/native.rb', line 15 def and_split(attr_list) # I possibly make references to those attributes, so # I can't be P2 [ self, tautology ] end |
#attr_split ⇒ Object
overriden because parent relies on free_variables, which raises an exception
23 24 25 |
# File 'lib/predicate/nodes/native.rb', line 23 def attr_split { nil => self } end |
#evaluate(tuple) ⇒ Object
27 28 29 |
# File 'lib/predicate/nodes/native.rb', line 27 def evaluate(tuple) proc.call(tuple) end |
#free_variables ⇒ Object
31 32 33 |
# File 'lib/predicate/nodes/native.rb', line 31 def free_variables raise NotSupportedError end |
#priority ⇒ Object
5 6 7 |
# File 'lib/predicate/nodes/native.rb', line 5 def priority 90 end |
#proc ⇒ Object
9 10 11 |
# File 'lib/predicate/nodes/native.rb', line 9 def proc self[1] end |