Class: Stages::Emit
Instance Attribute Summary
Attributes inherited from Stage
Instance Method Summary collapse
-
#initialize(thing) ⇒ Emit
constructor
A new instance of Emit.
- #process ⇒ Object
Methods inherited from Stage
#die, #done?, #drop_leftmost!, #each, #end?, #handle_value, #initialize_loop, #input, #length, #output, #reset, #root_source, #run, #source_empty?, #to_enum, #|
Constructor Details
#initialize(thing) ⇒ Emit
Returns a new instance of Emit.
3 4 5 6 |
# File 'lib/stages/emit.rb', line 3 def initialize(thing) @thing = thing super() end |
Instance Method Details
#process ⇒ Object
8 9 10 |
# File 'lib/stages/emit.rb', line 8 def process output @thing end |