Sha256: fc63534662af7d24f2deeebfd741da2102c052b9674e0ace952366f8458fd256

Contents?: true

Size: 636 Bytes

Versions: 7

Compression:

Stored size: 636 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: Set.new)
            # :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

7 entries across 7 versions & 1 rubygems

Version Path
foobara-0.0.27 projects/value/src/processor/pipeline.rb
foobara-0.0.26 projects/value/src/processor/pipeline.rb
foobara-0.0.25 projects/value/src/processor/pipeline.rb
foobara-0.0.24 projects/value/src/processor/pipeline.rb
foobara-0.0.23 projects/value/src/processor/pipeline.rb
foobara-0.0.22 projects/value/src/processor/pipeline.rb
foobara-0.0.21 projects/value/src/processor/pipeline.rb