Class: SyntaxTree::YARV::LocalTable::Lookup
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::LocalTable::Lookup
- 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
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#local ⇒ Object
readonly
Returns the value of attribute local.
Instance Method Summary collapse
-
#initialize(local, index, level) ⇒ Lookup
constructor
A new instance of Lookup.
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
#index ⇒ Object (readonly)
Returns the value of attribute index.
32 33 34 |
# File 'lib/syntax_tree/yarv/local_table.rb', line 32 def index @index end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
32 33 34 |
# File 'lib/syntax_tree/yarv/local_table.rb', line 32 def level @level end |
#local ⇒ Object (readonly)
Returns the value of attribute local.
32 33 34 |
# File 'lib/syntax_tree/yarv/local_table.rb', line 32 def local @local end |