class Omnium::Parser::AST::Compound

This compound statement is for a 'begin … end' block and therefore represents a list of statement nodes as @children.

Attributes

children[R]

Public Class Methods

new() click to toggle source
# File lib/omnium/parser/ast/compound.rb, line 11
def initialize
  @children = []
end

Public Instance Methods

append(nodes) click to toggle source
# File lib/omnium/parser/ast/compound.rb, line 15
def append(nodes)
  nodes.each { |node| @children << node }
  self
end