Class: Vertigo::Variable

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) ⇒ Variable

Returns a new instance of Variable.



407
408
409
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 407

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.



406
407
408
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 406

def init
  @init
end

#nameObject

Returns the value of attribute name.



406
407
408
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 406

def name
  @name
end

#typeObject

Returns the value of attribute type.



406
407
408
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 406

def type
  @type
end