Class: SyntaxTree::YARV::LocalTable::BlockLocal
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::LocalTable::BlockLocal
- Defined in:
- lib/syntax_tree/yarv/local_table.rb
Overview
A local representing a block passed into the current instruction sequence.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ BlockLocal
constructor
A new instance of BlockLocal.
Constructor Details
#initialize(name) ⇒ BlockLocal
Returns a new instance of BlockLocal.
16 17 18 |
# File 'lib/syntax_tree/yarv/local_table.rb', line 16 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/syntax_tree/yarv/local_table.rb', line 14 def name @name end |