Sha256: 09b31e9be359e63751bc3468e56a3636ebecf057505d92e90f909405a3363898
Contents?: true
Size: 304 Bytes
Versions: 4
Compression:
Stored size: 304 Bytes
Contents
module Stages class ResumeCount < Stage def input result = Hash.new{ |h, k| h[k] = 0 } while v = source.run result[v] += 1 end continued = @source.continue if continued.nil? nil else { continued => result} end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stages-0.2.0 | lib/stages/resume_count.rb |
stages-0.1.2 | lib/stages/resume_count.rb |
stages-0.1.1 | lib/stages/resume_count.rb |
stages-0.1.0 | lib/stages/resume_count.rb |