Class: Logicality::Parser::Ast::ValueOperandNode
- Defined in:
- lib/logicality/parser/ast/value_operand_node.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(token) ⇒ ValueOperandNode
constructor
A new instance of ValueOperandNode.
Methods inherited from Node
Constructor Details
#initialize(token) ⇒ ValueOperandNode
Returns a new instance of ValueOperandNode.
15 16 17 18 19 20 |
# File 'lib/logicality/parser/ast/value_operand_node.rb', line 15 def initialize(token) super(token) @name = 'value_operand_node' @value = token.value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
13 14 15 |
# File 'lib/logicality/parser/ast/value_operand_node.rb', line 13 def value @value end |