Sha256: 947b849a7282b3a618938da9466cc4872aae7b187d1922935315abecc8fa788b

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

module Dry
  module Transaction
    module StepAdapters
      # @api private
      class Tee < Base
        def call(*args, input)
          operation.call(*args, input)
          Right(input)
        end
      end

      register :tee, Tee
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-transaction-0.5.0 lib/dry/transaction/step_adapters/tee.rb
dry-transaction-0.4.0 lib/dry/transaction/step_adapters/tee.rb