Class: Electr::VariableAST
Overview
A node in the AST to represent a variable.
Instance Attribute Summary
Attributes inherited from AST
Instance Method Summary collapse
-
#initialize(value) ⇒ VariableAST
constructor
A new instance of VariableAST.
Methods inherited from AST
#add_child, #display, #leaf?, #size, #to_pn
Constructor Details
#initialize(value) ⇒ VariableAST
Returns a new instance of VariableAST.
6 7 8 9 |
# File 'lib/electr/ast/variable_ast.rb', line 6 def initialize(value) super("variable") @value = value end |