Module: Alf::Predicate::VarRef
- Includes:
- Expr
- Defined in:
- lib/alf-predicate/alf/predicate/nodes/var_ref.rb
Constant Summary
Constants included
from Expr
Expr::OP_NEGATIONS
Instance Method Summary
collapse
Methods included from Expr
#!, #&, #and_split, #constant_variables, #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, #var_ref
Instance Method Details
#free_variables ⇒ Object
14
15
16
|
# File 'lib/alf-predicate/alf/predicate/nodes/var_ref.rb', line 14
def free_variables
@free_variables ||= AttrList[ var_name ]
end
|
#priority ⇒ Object
6
7
8
|
# File 'lib/alf-predicate/alf/predicate/nodes/var_ref.rb', line 6
def priority
100
end
|
#var_name ⇒ Object
10
11
12
|
# File 'lib/alf-predicate/alf/predicate/nodes/var_ref.rb', line 10
def var_name
self[1]
end
|