Class: Vertigo::Entity

Inherits:
AstNode 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 = []) ⇒ Entity

Returns a new instance of Entity.



50
51
52
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 50

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

Instance Attribute Details

#genericsObject

Returns the value of attribute generics.



49
50
51
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 49

def generics
  @generics
end

#nameObject

Returns the value of attribute name.



49
50
51
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 49

def name
  @name
end

#portsObject

Returns the value of attribute ports.



49
50
51
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 49

def ports
  @ports
end