Class: SyntaxTree::YARV::LocalTable::PlainLocal

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/yarv/local_table.rb

Overview

A regular local variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



23
24
25
# File 'lib/syntax_tree/yarv/local_table.rb', line 23

def name
  @name
end