Sha256: ba9a160e11d0cbbd971cf7a1ef64daf37b969c62d73481ca5c7b6cebb5fc3780

Contents?: true

Size: 287 Bytes

Versions: 6

Compression:

Stored size: 287 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

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