Class: Stages::Emit

Inherits:
Stage
  • Object
show all
Defined in:
lib/stages/emit.rb

Instance Attribute Summary

Attributes inherited from Stage

#source

Instance Method Summary collapse

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

#processObject



8
9
10
# File 'lib/stages/emit.rb', line 8

def process
  output @thing
end