Class: RVM::Interpreter::Element
- Inherits:
-
Object
- Object
- RVM::Interpreter::Element
- Defined in:
- lib/rvm/interpreter.rb
Overview
Helper class to be parented to other Interpreter calsses for checks and including general behavior.
Direct Known Subclasses
Assignment, Block, Condition, Constant, CoreCall, Declaration, FunctionCall, FunctionDefinition, Loop, ObjectContext, Parameter, Return, Sequence, SetClassFunction, Variable
Instance Attribute Summary collapse
-
#pos ⇒ Object
The position in the soruce code, added to help debugging scripts with problems.
Instance Method Summary collapse
-
#initialize(pos) ⇒ Element
constructor
Initializes the interpreter element with a position.
-
#optimize ⇒ Object
Placeholder for optimization.
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
#pos ⇒ Object
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 |