Class: SyntaxTree::YARV::LocalTable::Lookup

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

Overview

The result of looking up a local variable in the current local table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(local, index, level) ⇒ Lookup

Returns a new instance of Lookup.



34
35
36
37
38
# File 'lib/syntax_tree/yarv/local_table.rb', line 34

def initialize(local, index, level)
  @local = local
  @index = index
  @level = level
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



32
33
34
# File 'lib/syntax_tree/yarv/local_table.rb', line 32

def index
  @index
end

#levelObject (readonly)

Returns the value of attribute level.



32
33
34
# File 'lib/syntax_tree/yarv/local_table.rb', line 32

def level
  @level
end

#localObject (readonly)

Returns the value of attribute local.



32
33
34
# File 'lib/syntax_tree/yarv/local_table.rb', line 32

def local
  @local
end