Module: Dry::Schema::Extensions::Hints::ResultMethods
- Included in:
- Result
- Defined in:
- lib/dry/schema/extensions/hints/result_methods.rb
Overview
Get errors exclusively without hints
Instance Method Summary collapse
-
#errors(options = EMPTY_HASH) ⇒ MessageSet
Return error messages exclusively.
-
#hints(options = EMPTY_HASH) ⇒ MessageSet
Get hints exclusively without errors.
-
#messages(options = EMPTY_HASH) ⇒ MessageSet
Get all messages including hints.
Instance Method Details
#errors(options = EMPTY_HASH) ⇒ MessageSet
Return error messages exclusively
18 19 20 |
# File 'lib/dry/schema/extensions/hints/result_methods.rb', line 18 def errors( = EMPTY_HASH) (.merge(hints: false)) end |
#hints(options = EMPTY_HASH) ⇒ MessageSet
Get hints exclusively without errors
40 41 42 |
# File 'lib/dry/schema/extensions/hints/result_methods.rb', line 40 def hints( = EMPTY_HASH) (.merge(failures: false)) end |
#messages(options = EMPTY_HASH) ⇒ MessageSet
Get all messages including hints
29 30 31 |
# File 'lib/dry/schema/extensions/hints/result_methods.rb', line 29 def ( = EMPTY_HASH) () end |