Sha256: 1892fe43250dcd0535094a0b672fd794887f3aea10eb625bbecfc0c5ec153a41

Contents?: true

Size: 214 Bytes

Versions: 3

Compression:

Stored size: 214 Bytes

Contents

module Stages
  class Cache < Stage
    def initialize()
      super()
    end

    def process
      cache = []
      while i = input
        cache << i
      end
      cache.each{ |x| output x}
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stages-0.3.4 lib/stages/cache.rb
stages-0.3.3 lib/stages/cache.rb
stages-0.3.2 lib/stages/cache.rb