Class: Vertigo::Root

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast.rb,
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(design_units = []) ⇒ Root

Returns a new instance of Root.



22
23
24
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 22

def initialize design_units=[]
  @design_units=design_units
end

Instance Attribute Details

#design_unitsObject

Returns the value of attribute design_units.



21
22
23
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 21

def design_units
  @design_units
end

Instance Method Details

#<<(e) ⇒ Object



11
12
13
# File 'lib/vertigo/ast.rb', line 11

def <<(e)
  @design_units << e
end

#flatten!Object



15
16
17
# File 'lib/vertigo/ast.rb', line 15

def flatten!
  @design_units.flatten!
end