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