Class: Electr::OperatorAST

Inherits:
AST
  • Object
show all
Defined in:
lib/electr/ast/operator_ast.rb

Instance Method Summary collapse

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