Class: Rubinius::Compiler::NestedLocalReference

Inherits:
Object
  • Object
show all
Defined in:
lib/compiler/locals.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#depthObject

Returns the value of attribute depth.



89
90
91
# File 'lib/compiler/locals.rb', line 89

def depth
  @depth
end

#slotObject (readonly)

Returns the value of attribute slot.



90
91
92
# File 'lib/compiler/locals.rb', line 90

def slot
  @slot
end