lib/dry/schema/extensions/hints/result_methods.rb in dry-schema-0.6.0 vs lib/dry/schema/extensions/hints/result_methods.rb in dry-schema-1.0.0
- old
+ new
@@ -2,33 +2,40 @@
module Dry
module Schema
module Extensions
module Hints
+ # Get errors exclusively without hints
+ #
+ # @api public
module ResultMethods
+ # Return error messages exclusively
+ #
# @see Result#errors
#
+ # @return [MessageSet]
+ #
# @api public
def errors(options = EMPTY_HASH)
message_set(options.merge(hints: false))
end
# Get all messages including hints
#
# @see #message_set
#
- # @return [Hash<Symbol=>Array>]
+ # @return [MessageSet]
#
# @api public
def messages(options = EMPTY_HASH)
message_set(options)
end
# Get hints exclusively without errors
#
# @see #message_set
#
- # @return [Hash<Symbol=>Array>]
+ # @return [MessageSet]
#
# @api public
def hints(options = EMPTY_HASH)
message_set(options.merge(failures: false))
end