Class: Vertigo::Variable
- Defined in:
- lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#init ⇒ Object
Returns the value of attribute init.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(name = nil, type = nil, init = nil) ⇒ Variable
constructor
A new instance of Variable.
Methods inherited from AstNode
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
#init ⇒ Object
Returns the value of attribute init.
406 407 408 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 406 def init @init end |
#name ⇒ Object
Returns the value of attribute name.
406 407 408 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 406 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
406 407 408 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 406 def type @type end |