Class: Dry::Validation::Rust::Failures
- Inherits:
-
Object
- Object
- Dry::Validation::Rust::Failures
- Defined in:
- lib/dry/validation/rust/failures.rb
Constant Summary collapse
- IDENTIFIER_MESSAGES =
{ acceptance: 'must be accepted', invalid: 'is invalid', taken: 'is already taken' }.freeze
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #empty? ⇒ Boolean
- #failure(message, tokens = {}) ⇒ Object
-
#initialize(path = []) ⇒ Failures
constructor
A new instance of Failures.
Constructor Details
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
13 14 15 |
# File 'lib/dry/validation/rust/failures.rb', line 13 def @messages end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
13 14 15 |
# File 'lib/dry/validation/rust/failures.rb', line 13 def path @path end |
Instance Method Details
#empty? ⇒ Boolean
26 27 28 |
# File 'lib/dry/validation/rust/failures.rb', line 26 def empty? .empty? end |