Class: Vertigo::Input

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

Returns a new instance of Input.



64
65
66
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 64

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.



63
64
65
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 63

def init
  @init
end

#nameObject

Returns the value of attribute name.



63
64
65
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 63

def name
  @name
end

#typeObject

Returns the value of attribute type.



63
64
65
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 63

def type
  @type
end