Class: RVM::Interpreter::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/rvm/interpreter.rb

Overview

Helper class to be parented to other Interpreter calsses for checks and including general behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pos) ⇒ Element

Initializes the interpreter element with a position.



58
59
60
# File 'lib/rvm/interpreter.rb', line 58

def initialize pos
  @pos = pos
end

Instance Attribute Details

#posObject

The position in the soruce code, added to help debugging scripts with problems.



55
56
57
# File 'lib/rvm/interpreter.rb', line 55

def pos
  @pos
end

Instance Method Details

#optimizeObject

Placeholder for optimization



63
64
65
66
# File 'lib/rvm/interpreter.rb', line 63

def optimize
  RVM::debug "Optimizung #{self}" if $DEBUG
  self
end