Sha256: 4397ecf4af1412ae9c5dff080d412df5cb9547be660a5fd40f5036e1fcb74313

Contents?: true

Size: 174 Bytes

Versions: 9

Compression:

Stored size: 174 Bytes

Contents

module Stages
  class Exhaust < Stage
    def process
      results = []
      while !source_empty?
        results << input
      end
      output results
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
stages-1.2.1 lib/stages/exhaust.rb
stages-1.2.0 lib/stages/exhaust.rb
stages-1.1.5 lib/stages/exhaust.rb
stages-1.1.2 lib/stages/exhaust.rb
stages-1.1.1 lib/stages/exhaust.rb
stages-1.0.1 lib/stages/exhaust.rb
stages-1.0.0 lib/stages/exhaust.rb
stages-0.4.1 lib/stages/exhaust.rb
stages-0.4.0 lib/stages/exhaust.rb