Class: Vertigo::PortMap

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(elements = []) ⇒ PortMap

Returns a new instance of PortMap.



169
170
171
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 169

def initialize elements=[]
  @elements=elements
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements.



168
169
170
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 168

def elements
  @elements
end

Instance Method Details

#<<(e) ⇒ Object



70
71
72
# File 'lib/vertigo/ast.rb', line 70

def << e
  @elements << e
end