Sha256: c6dffbc2cbcc3d0bd30f40d62da2e21b6c509d13ab20527c8603093bd71365e6
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 Bytes
Contents
module Dry module Schema module Extensions module Hints module ResultMethods # @see Result#errors # # @api public def errors(options = EMPTY_HASH) message_set(options.merge(hints: false)).dump end # Get all messages including hints # # @see #message_set # # @return [Hash<Symbol=>Array>] # # @api public def messages(options = EMPTY_HASH) message_set(options).dump end # Get hints exclusively without errors # # @see #message_set # # @return [Hash<Symbol=>Array>] # # @api public def hints(options = EMPTY_HASH) message_set(options.merge(failures: false)).dump end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-schema-0.2.0 | lib/dry/schema/extensions/hints/result_methods.rb |