Class: CodeTools::Compiler::LocalVariable
- Inherits:
- 
      Object
      
        - Object
- CodeTools::Compiler::LocalVariable
 
- Defined in:
- lib/rubinius/code/compiler/locals.rb
Instance Attribute Summary collapse
- 
  
    
      #slot  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute slot. 
Instance Method Summary collapse
- 
  
    
      #initialize(slot)  ⇒ LocalVariable 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LocalVariable. 
- #nested_reference ⇒ Object
- #reference ⇒ Object
Constructor Details
#initialize(slot) ⇒ LocalVariable
Returns a new instance of LocalVariable.
| 38 39 40 | # File 'lib/rubinius/code/compiler/locals.rb', line 38 def initialize(slot) @slot = slot end | 
Instance Attribute Details
#slot ⇒ Object (readonly)
Returns the value of attribute slot.
| 36 37 38 | # File 'lib/rubinius/code/compiler/locals.rb', line 36 def slot @slot end | 
Instance Method Details
#nested_reference ⇒ Object
| 46 47 48 | # File 'lib/rubinius/code/compiler/locals.rb', line 46 def nested_reference NestedLocalReference.new @slot end | 
#reference ⇒ Object
| 42 43 44 | # File 'lib/rubinius/code/compiler/locals.rb', line 42 def reference LocalReference.new @slot end |