Class: Falluto::VarDeclNode
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Falluto::VarDeclNode
- Defined in:
- lib/falluto/grammar/nodes.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
127 128 129 |
# File 'lib/falluto/grammar/nodes.rb', line 127 def name decl_var_id.stripped end |
#vartype ⇒ Object
131 132 133 134 135 136 137 |
# File 'lib/falluto/grammar/nodes.rb', line 131 def vartype begin t = type.module_type.name.stripped rescue NoMethodError t = type.stripped end end |