Sha256: 92da5c1bad034396d95d51595f457166a88931c4e5ed3a9b957a815cf46efb63

Contents?: true

Size: 218 Bytes

Versions: 4

Compression:

Stored size: 218 Bytes

Contents

module Dry
  module Mutations
    module Extensions
      module ErrorHash
        def message
          super.map.with_index(1) { |kv, i| "#{i}. " << kv.join(': ') }.join("\n")
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-mutations-1.6.0 lib/dry/mutations/extensions/error_hash.rb
dry-mutations-1.5.7 lib/dry/mutations/extensions/error_hash.rb
dry-mutations-1.5.6 lib/dry/mutations/extensions/error_hash.rb
dry-mutations-1.5.5 lib/dry/mutations/extensions/error_hash.rb