Module: Predicate::Not
- Includes:
- Expr
- Defined in:
- lib/predicate/nodes/not.rb
Constant Summary
Constants included
from Expr
Expr::OP_NEGATIONS
Instance Method Summary
collapse
Methods included from Expr
#&, #and_split, #attr_split, #bind, #constant_variables, #constants, #contradiction?, #dyadic_priority, #identifier?, #literal?, #opaque?, #qualify, #rename, #sexpr, #tautology?, #to_hash, #to_postgres, #to_s, #to_sequel, #unqualify, #|
Methods included from Factory
#_factor_predicate, #and, #comp, #contradiction, #empty, #from_hash, #h, #has_size, #identifier, #in, #literal, #match, #native, #not, #opaque, #or, #pg_array_empty, #pg_array_literal, #pg_array_overlaps, #placeholder, #qualified_identifier, #sexpr, #tautology, #var, #vars
Instance Method Details
#! ⇒ Object
11
12
13
|
# File 'lib/predicate/nodes/not.rb', line 11
def !
last
end
|
#evaluate(tuple) ⇒ Object
19
20
21
|
# File 'lib/predicate/nodes/not.rb', line 19
def evaluate(tuple)
!last.evaluate(tuple)
end
|
#free_variables ⇒ Object
15
16
17
|
# File 'lib/predicate/nodes/not.rb', line 15
def free_variables
@free_variables ||= last.free_variables
end
|
#operator_symbol ⇒ Object
5
6
7
|
# File 'lib/predicate/nodes/not.rb', line 5
def operator_symbol
:'!'
end
|
#priority ⇒ Object
9
|
# File 'lib/predicate/nodes/not.rb', line 9
def priority; 90; end
|