Class: Rubinius::ToolSet.current::TS::Compiler::Packager
- Defined in:
- lib/rubinius/compiler/stages.rb
Overview
encoded bytecode -> compiled method
Instance Attribute Summary
Attributes inherited from Stage
Instance Method Summary collapse
-
#initialize(compiler, last) ⇒ Packager
constructor
A new instance of Packager.
- #print(klass = MethodPrinter) ⇒ Object
- #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) ⇒ Packager
Returns a new instance of Packager.
102 103 104 105 |
# File 'lib/rubinius/compiler/stages.rb', line 102 def initialize(compiler, last) super compiler.packager = self end |
Instance Method Details
#print(klass = MethodPrinter) ⇒ Object
107 108 109 110 111 |
# File 'lib/rubinius/compiler/stages.rb', line 107 def print(klass=MethodPrinter) @printer = klass.new @printer.insert self @printer end |
#run ⇒ Object
113 114 115 116 |
# File 'lib/rubinius/compiler/stages.rb', line 113 def run @output = @input.package Rubinius::CompiledCode run_next end |