Module: Dry::Schema::Extensions::Hints::ResultMethods
- Included in:
- Result
- Defined in:
- lib/dry/schema/extensions/hints/result_methods.rb
Instance Method Summary collapse
- #errors(options = EMPTY_HASH) ⇒ Object
-
#hints(options = EMPTY_HASH) ⇒ Hash<Symbol=>Array>
Get hints exclusively without errors.
-
#messages(options = EMPTY_HASH) ⇒ Hash<Symbol=>Array>
Get all messages including hints.
Instance Method Details
#errors(options = EMPTY_HASH) ⇒ Object
11 12 13 |
# File 'lib/dry/schema/extensions/hints/result_methods.rb', line 11 def errors( = EMPTY_HASH) (.merge(hints: false)) end |
#hints(options = EMPTY_HASH) ⇒ Hash<Symbol=>Array>
Get hints exclusively without errors
33 34 35 |
# File 'lib/dry/schema/extensions/hints/result_methods.rb', line 33 def hints( = EMPTY_HASH) (.merge(failures: false)) end |
#messages(options = EMPTY_HASH) ⇒ Hash<Symbol=>Array>
Get all messages including hints
22 23 24 |
# File 'lib/dry/schema/extensions/hints/result_methods.rb', line 22 def ( = EMPTY_HASH) () end |