Class: Vertigo::ComponentDecl
- Defined in:
- lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#generics ⇒ Object
Returns the value of attribute generics.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ports ⇒ Object
Returns the value of attribute ports.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(name = nil, generics = [], ports = []) ⇒ ComponentDecl
constructor
A new instance of ComponentDecl.
Methods inherited from AstNode
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
#generics ⇒ Object
Returns the value of attribute generics.
154 155 156 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 154 def generics @generics end |
#name ⇒ Object
Returns the value of attribute name.
154 155 156 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 154 def name @name end |
#ports ⇒ Object
Returns the value of attribute ports.
154 155 156 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 154 def ports @ports end |