Sha256: d9bb6c4f0076935a630e292cb2c18ab4abd7a9e8eb1bbf6553254981a78feb73

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

module Dry
  class 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

1 entries across 1 versions & 1 rubygems

Version Path
dry-transaction-0.9.0 lib/dry/transaction/step_adapters/tee.rb