Sha256: 7be2d3900c290716bd399490df41d0dbcc0bde736ce45dbc2d22ab71d035fe9d

Contents?: true

Size: 310 Bytes

Versions: 3

Compression:

Stored size: 310 Bytes

Contents

module Dry
  module Transaction
    class StepAdapters
      # @api private
      class Tee
        include Dry::Monads::Either::Mixin

        def call(step, input, *args)
          step.operation.call(input, *args)
          Right(input)
        end
      end

      register :tee, Tee.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-transaction-0.10.2 lib/dry/transaction/step_adapters/tee.rb
dry-transaction-0.10.1 lib/dry/transaction/step_adapters/tee.rb
dry-transaction-0.10.0 lib/dry/transaction/step_adapters/tee.rb