Sha256: 5228b91b1651513b447ecabc0f325adbf8296e014bc5705e19d3f8113316c7c3

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

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

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

      register :map, Map.new
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-transaction-0.14.0 lib/dry/transaction/step_adapters/map.rb
dry-transaction-0.13.3 lib/dry/transaction/step_adapters/map.rb
dry-transaction-0.13.2 lib/dry/transaction/step_adapters/map.rb
dry-transaction-0.13.1 lib/dry/transaction/step_adapters/map.rb