Sha256: 12e5039d187bc9cc21ea5bd89beed5c9cd8d9289adbe2c5f9593614369a4ca38

Contents?: true

Size: 305 Bytes

Versions: 6

Compression:

Stored size: 305 Bytes

Contents

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

        def call(operation, _options, args)
          operation.(*args)
          Success(args[0])
        end
      end

      register :tee, Tee.new
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dry-transaction-0.13.0 lib/dry/transaction/step_adapters/tee.rb
dry-transaction-0.12.1 lib/dry/transaction/step_adapters/tee.rb
dry-transaction-0.12.0 lib/dry/transaction/step_adapters/tee.rb
dry-transaction-0.11.2 lib/dry/transaction/step_adapters/tee.rb
dry-transaction-0.11.1 lib/dry/transaction/step_adapters/tee.rb
dry-transaction-0.11.0 lib/dry/transaction/step_adapters/tee.rb