Class: Electr::OperatorAST
Instance Method Summary collapse
-
#initialize(value) ⇒ OperatorAST
constructor
A new instance of OperatorAST.
Methods inherited from AST
#add_child, #display, #leaf?, #size, #to_pn
Constructor Details
#initialize(value) ⇒ OperatorAST
Returns a new instance of OperatorAST.
5 6 7 8 |
# File 'lib/electr/ast/operator_ast.rb', line 5 def initialize(value) super("operator") @value = value end |