Class: Vertigo::FormalArg

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(signal = nil, direction = nil, name = nil, type = nil) ⇒ FormalArg

Returns a new instance of FormalArg.



106
107
108
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 106

def initialize signal=nil,direction=nil,name=nil,type=nil
  @signal,@direction,@name,@type=signal,direction,name,type
end

Instance Attribute Details

#directionObject

Returns the value of attribute direction.



105
106
107
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 105

def direction
  @direction
end

#nameObject

Returns the value of attribute name.



105
106
107
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 105

def name
  @name
end

#signalObject

Returns the value of attribute signal.



105
106
107
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 105

def signal
  @signal
end

#typeObject

Returns the value of attribute type.



105
106
107
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 105

def type
  @type
end