Class: Ravensat::VarNode
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
- #cnf? ⇒ Boolean
-
#initialize ⇒ VarNode
constructor
A new instance of VarNode.
- #result ⇒ Object
- #~@ ⇒ Object
Methods inherited from Node
#&, #clauses_size, #each, #to_s, #vars, #vars_size, #|
Constructor Details
#initialize ⇒ VarNode
Returns a new instance of VarNode.
4 5 6 7 |
# File 'lib/ravensat/ast/var_node.rb', line 4 def initialize @value @children = [] end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/ravensat/ast/var_node.rb', line 3 def value @value end |
Instance Method Details
#cnf? ⇒ Boolean
13 14 15 |
# File 'lib/ravensat/ast/var_node.rb', line 13 def cnf? true end |
#result ⇒ Object
17 18 19 |
# File 'lib/ravensat/ast/var_node.rb', line 17 def result @value end |