Sha256: 7a181d4dc185a33f73bef24823d19cd07ef30fcefdacca8e98c271bd4f2742e2

Contents?: true

Size: 628 Bytes

Versions: 20

Compression:

Stored size: 628 Bytes

Contents

Foobara.require_project_file("value", "processor/multi")

module Foobara
  module Value
    class Processor
      class Pipeline < Multi
        class << self
          def foobara_manifest(to_include:)
            # :nocov:
            super.merge(processor_type: :pipeline)
            # :nocov:
          end
        end

        def process_outcome(old_outcome)
          processors.inject(old_outcome) do |outcome, processor|
            processor.process_outcome(outcome)
          end
        end

        def process_value(value)
          process_outcome(Outcome.success(value))
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
foobara-0.0.20 projects/value/src/processor/pipeline.rb
foobara-0.0.19 projects/value/src/processor/pipeline.rb
foobara-0.0.18 projects/value/src/processor/pipeline.rb
foobara-0.0.17 projects/value/src/processor/pipeline.rb
foobara-0.0.16 projects/value/src/processor/pipeline.rb
foobara-0.0.15 projects/value/src/processor/pipeline.rb
foobara-0.0.14 projects/value/src/processor/pipeline.rb
foobara-0.0.13 projects/value/src/processor/pipeline.rb
foobara-0.0.12 projects/value/src/processor/pipeline.rb
foobara-0.0.11 projects/value/src/processor/pipeline.rb
foobara-0.0.10 projects/value/src/processor/pipeline.rb
foobara-0.0.9 projects/value/src/processor/pipeline.rb
foobara-0.0.8 projects/value/src/processor/pipeline.rb
foobara-0.0.7 projects/value/src/processor/pipeline.rb
foobara-0.0.6 projects/value/src/processor/pipeline.rb
foobara-0.0.5 projects/value/src/processor/pipeline.rb
foobara-0.0.4 projects/value/src/processor/pipeline.rb
foobara-0.0.3 projects/value/src/processor/pipeline.rb
foobara-0.0.2 projects/value/src/processor/pipeline.rb
foobara-0.0.1 projects/value/src/processor/pipeline.rb