Class: Electr::RootAST

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

Overview

The root node of the AST.

Instance Attribute Summary

Attributes inherited from AST

#children, #name, #value

Instance Method Summary collapse

Methods inherited from AST

#add_child, #display, #leaf?, #size, #to_pn

Constructor Details

#initializeRootAST

Returns a new instance of RootAST.



6
7
8
# File 'lib/electr/ast/root_ast.rb', line 6

def initialize
  super("root")
end