Class: SyntaxTree::YARV::LocalTable::BlockLocal

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/syntax_tree/yarv/local_table.rb', line 14

def name
  @name
end