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