Class: Rubinius::Compiler::NestedLocalReference
- Inherits:
-
Object
- Object
- Rubinius::Compiler::NestedLocalReference
- Defined in:
- lib/compiler/locals.rb
Instance Attribute Summary collapse
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#slot ⇒ Object
readonly
Returns the value of attribute slot.
Instance Method Summary collapse
-
#initialize(slot, depth = 0) ⇒ NestedLocalReference
constructor
A new instance of NestedLocalReference.
Constructor Details
#initialize(slot, depth = 0) ⇒ NestedLocalReference
Returns a new instance of NestedLocalReference.
92 93 94 95 |
# File 'lib/compiler/locals.rb', line 92 def initialize(slot, depth=0) @slot = slot @depth = depth end |
Instance Attribute Details
#depth ⇒ Object
Returns the value of attribute depth.
89 90 91 |
# File 'lib/compiler/locals.rb', line 89 def depth @depth end |
#slot ⇒ Object (readonly)
Returns the value of attribute slot.
90 91 92 |
# File 'lib/compiler/locals.rb', line 90 def slot @slot end |