Sha256: ffb75fd9f98a4273f3c023d7aae8be11212a71726e7e87ff16c813b7c1d125ad

Contents?: true

Size: 179 Bytes

Versions: 9

Compression:

Stored size: 179 Bytes

Contents

module Stages
  class Cache < Stage
    def process
      cache = []
      while !source_empty?
        cache << input
      end
      cache.each{ |x| output x}
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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