Sha256: 4f18c363c2471c03d1688c0487fc9f4fb919076ea9827f476d25802c4fd658d2

Contents?: true

Size: 173 Bytes

Versions: 11

Compression:

Stored size: 173 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
stages-0.3.4 lib/stages/exhaust.rb
stages-0.3.3 lib/stages/exhaust.rb
stages-0.3.2 lib/stages/exhaust.rb
stages-0.3.1 lib/stages/exhaust.rb
stages-0.3.0 lib/stages/exhaust.rb
stages-0.2.10 lib/stages/exhaust.rb
stages-0.2.9 lib/stages/exhaust.rb
stages-0.2.8 lib/stages/exhaust.rb
stages-0.2.7 lib/stages/exhaust.rb
stages-0.2.6 lib/stages/exhaust.rb
stages-0.2.5 lib/stages/exhaust.rb