Sha256: e0e1a10d20eefe9381bc396475240699b85b680f451f205b684a81c71998aac0

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

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

        def call(step, input, *args)
          Right(step.operation.call(input, *args))
        end
      end

      register :map, Map.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-transaction-0.10.2 lib/dry/transaction/step_adapters/map.rb
dry-transaction-0.10.1 lib/dry/transaction/step_adapters/map.rb
dry-transaction-0.10.0 lib/dry/transaction/step_adapters/map.rb