Class: Rubinius::ToolSet.current::TS::Compiler::Encoder
- Defined in:
- lib/rubinius/compiler/stages.rb
Overview
symbolic bytecode -> encoded bytecode
Instance Attribute Summary
Attributes inherited from Stage
Instance Method Summary collapse
-
#initialize(compiler, last) ⇒ Encoder
constructor
A new instance of Encoder.
- #run ⇒ Object
Methods inherited from Stage
#create_next_stage, #input, #insert, next_stage, next_stage_class, #processor, #run_next, stage, stage_name
Constructor Details
#initialize(compiler, last) ⇒ Encoder
Returns a new instance of Encoder.
124 125 126 127 |
# File 'lib/rubinius/compiler/stages.rb', line 124 def initialize(compiler, last) super compiler.encoder = self end |
Instance Method Details
#run ⇒ Object
129 130 131 132 133 |
# File 'lib/rubinius/compiler/stages.rb', line 129 def run @input.encode @output = @input run_next end |