Class: Stages::Select
Instance Attribute Summary
Attributes inherited from Stage
Instance Method Summary collapse
Methods inherited from Stage
#die, #done?, #drop_leftmost!, #each, #end?, #initialize, #initialize_loop, #input, #length, #output, #process, #reset, #root_source, #run, #source_empty?, #to_enum, #|
Constructor Details
This class inherits a constructor from Stages::Stage
Instance Method Details
#handle_value(value) ⇒ Object
3 4 5 |
# File 'lib/stages/select.rb', line 3 def handle_value(value) output(value) if @block.call(value) end |