Class: FAM::Syntax::AST::SyntaxTree
Instance Attribute Summary collapse
-
#tree ⇒ Object
readonly
Returns the value of attribute tree.
Instance Method Summary collapse
- #<<(node) ⇒ Object
- #[](i) ⇒ Object
-
#initialize ⇒ SyntaxTree
constructor
A new instance of SyntaxTree.
Constructor Details
#initialize ⇒ SyntaxTree
Returns a new instance of SyntaxTree.
11 12 13 |
# File 'lib/fam/syntax/ast.rb', line 11 def initialize @tree = [] end |
Instance Attribute Details
#tree ⇒ Object (readonly)
Returns the value of attribute tree.
9 10 11 |
# File 'lib/fam/syntax/ast.rb', line 9 def tree @tree end |