Method: AST::Node#append
- Defined in:
- lib/ast/node.rb
#append(element) ⇒ AST::Node Also known as: <<
Appends element to children and returns the resulting node.
177 178 179 |
# File 'lib/ast/node.rb', line 177 def append(element) updated(nil, @children + [element]) end |