Module: Alf::Predicate::In
- Includes:
- Expr
- Defined in:
- lib/alf-predicate/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?, #rename, #sexpr, #tautology?, #to_proc, #to_ruby_code, #|
Methods included from Factory
#_factor_predicate, #and, #between, #comp, #contradiction, #in, #literal, #native, #not, #or, #relation, #sexpr, #tautology
Instance Method Details
#constant_variables ⇒ Object
22
23
24
|
# File 'lib/alf-predicate/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/alf/predicate/nodes/in.rb', line 18
def free_variables
@free_variables ||= var_ref.free_variables
end
|
#priority ⇒ Object
6
7
8
|
# File 'lib/alf-predicate/alf/predicate/nodes/in.rb', line 6
def priority
80
end
|
#values ⇒ Object
14
15
16
|
# File 'lib/alf-predicate/alf/predicate/nodes/in.rb', line 14
def values
self[2]
end
|
#var_ref ⇒ Object
10
11
12
|
# File 'lib/alf-predicate/alf/predicate/nodes/in.rb', line 10
def var_ref
self[1]
end
|