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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ EvalLocalVariable

Returns a new instance of EvalLocalVariable.



69
70
71
# File 'lib/rubinius/compiler/locals.rb', line 69

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



67
68
69
# File 'lib/rubinius/compiler/locals.rb', line 67

def name
  @name
end

Instance Method Details

#referenceObject Also known as: nested_reference



73
74
75
# File 'lib/rubinius/compiler/locals.rb', line 73

def reference
  EvalLocalReference.new @name
end