Sha256: f30c12ee8e22c9068062922fff44299c8f7d11e1e6a24d770f7deae2f05717f4

Contents?: true

Size: 173 Bytes

Versions: 5

Compression:

Stored size: 173 Bytes

Contents

module Stages
  class ExhaustCount < Stage
    def process
      results = 0
      while value = input
        results += 1
      end
      output results
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stages-0.3.4 lib/stages/exhaust_count.rb
stages-0.3.3 lib/stages/exhaust_count.rb
stages-0.3.2 lib/stages/exhaust_count.rb
stages-0.3.1 lib/stages/exhaust_count.rb
stages-0.3.0 lib/stages/exhaust_count.rb