Sha256: 6783cad3901c1fc6ee21cc7971ede17c7f3ed25b66bc8d9562fcc522ff93a30f

Contents?: true

Size: 212 Bytes

Versions: 1

Compression:

Stored size: 212 Bytes

Contents

module CFlow
  class Pipeline
    def initialize(procs:)
      @procs = procs
    end
    
    def call(input)
      @procs.each do |proc|
        input = proc.call(input)
      end
      input
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bsielski_control_flow-1.0.0 lib/c_flow/pipeline.rb