Class: SyntaxTree::YARV::LocalTable::PlainLocal
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::LocalTable::PlainLocal
- Defined in:
- lib/syntax_tree/yarv/local_table.rb
Overview
A regular local variable.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ PlainLocal
constructor
A new instance of PlainLocal.
Constructor Details
#initialize(name) ⇒ PlainLocal
Returns a new instance of PlainLocal.
25 26 27 |
# File 'lib/syntax_tree/yarv/local_table.rb', line 25 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/syntax_tree/yarv/local_table.rb', line 23 def name @name end |