Class: Vertigo::ComponentDecl

Inherits:
AstNode
  • Object
show all
Defined in:
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(name = nil, generics = [], ports = []) ⇒ ComponentDecl

Returns a new instance of ComponentDecl.



155
156
157
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 155

def initialize name=nil,generics=[],ports=[]
  @name,@generics,@ports=name,generics,ports
end

Instance Attribute Details

#genericsObject

Returns the value of attribute generics.



154
155
156
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 154

def generics
  @generics
end

#nameObject

Returns the value of attribute name.



154
155
156
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 154

def name
  @name
end

#portsObject

Returns the value of attribute ports.



154
155
156
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 154

def ports
  @ports
end