Class: Rubinius::ToolSet.current::TS::Compiler::EvalLocalVariable
- Inherits:
-
Object
- Object
- Rubinius::ToolSet.current::TS::Compiler::EvalLocalVariable
- Defined in:
- lib/rubinius/compiler/locals.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ EvalLocalVariable
constructor
A new instance of EvalLocalVariable.
- #reference ⇒ Object (also: #nested_reference)
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
#name ⇒ Object (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
#reference ⇒ Object Also known as: nested_reference
73 74 75 |
# File 'lib/rubinius/compiler/locals.rb', line 73 def reference EvalLocalReference.new @name end |