Sha256: 131ee31c89976f15df5e4cbfc8ed51818c5d3c0c3232ff040c702eb5d742b98b

Contents?: true

Size: 243 Bytes

Versions: 2

Compression:

Stored size: 243 Bytes

Contents

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

      register :map, Map
    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/map.rb
dry-transaction-0.4.0 lib/dry/transaction/step_adapters/map.rb