Class: Vertigo::Output

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, type = nil, init = nil) ⇒ Output

Returns a new instance of Output.



71
72
73
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 71

def initialize name=nil,type=nil,init=nil
  @name,@type,@init=name,type,init
end

Instance Attribute Details

#initObject

Returns the value of attribute init.



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

def init
  @init
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end