Class: Rubinius::ToolSet.current::TS::Compiler::LocalVariable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(slot) ⇒ LocalVariable

Returns a new instance of LocalVariable.



38
39
40
# File 'lib/rubinius/compiler/locals.rb', line 38

def initialize(slot)
  @slot = slot
end

Instance Attribute Details

#slotObject (readonly)

Returns the value of attribute slot.



36
37
38
# File 'lib/rubinius/compiler/locals.rb', line 36

def slot
  @slot
end

Instance Method Details

#nested_referenceObject



46
47
48
# File 'lib/rubinius/compiler/locals.rb', line 46

def nested_reference
  NestedLocalReference.new @slot
end

#referenceObject



42
43
44
# File 'lib/rubinius/compiler/locals.rb', line 42

def reference
  LocalReference.new @slot
end