Class: Vertigo::Constant
- Defined in:
- lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#expr ⇒ Object
Returns the value of attribute expr.
-
#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, expr = nil) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from AstNode
Constructor Details
#initialize(name = nil, type = nil, expr = nil) ⇒ Constant
Returns a new instance of Constant.
393 394 395 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 393 def initialize name=nil,type=nil,expr=nil @name,@type,@expr=name,type,expr end |
Instance Attribute Details
#expr ⇒ Object
Returns the value of attribute expr.
392 393 394 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 392 def expr @expr end |
#name ⇒ Object
Returns the value of attribute name.
392 393 394 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 392 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
392 393 394 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 392 def type @type end |