Module: Alf::Predicate::Not
- Includes:
- Expr
- Defined in:
- lib/alf/predicate/nodes/not.rb
Constant Summary
Constants included
from Expr
Expr::OP_NEGATIONS
Instance Method Summary
collapse
Methods included from Expr
#&, #and_split, #constant_variables, #contradiction?, #qualify, #rename, #sexpr, #tautology?, #to_proc, #to_ruby_code, #|
Methods included from Factory
#_factor_predicate, #and, #between, #comp, #contradiction, #identifier, #in, #literal, #native, #not, #or, #qualified_identifier, #relation, #sexpr, #tautology
Instance Method Details
#! ⇒ Object
14
15
16
|
# File 'lib/alf/predicate/nodes/not.rb', line 14
def !
last
end
|
#free_variables ⇒ Object
18
19
20
|
# File 'lib/alf/predicate/nodes/not.rb', line 18
def free_variables
@free_variables ||= last.free_variables
end
|
#operator_symbol ⇒ Object
6
7
8
|
# File 'lib/alf/predicate/nodes/not.rb', line 6
def operator_symbol
:'!'
end
|
#priority ⇒ Object
10
11
12
|
# File 'lib/alf/predicate/nodes/not.rb', line 10
def priority
90
end
|