Class: Dry::Validation::Message::Each
- Inherits:
-
Dry::Validation::Message
- Object
- Dry::Validation::Message
- Dry::Validation::Message::Each
- Defined in:
- lib/dry/validation/message.rb
Constant Summary
Constants inherited from Dry::Validation::Message
Instance Attribute Summary
Attributes inherited from Dry::Validation::Message
#args, #options, #path, #predicate, #rule, #text
Instance Method Summary collapse
Methods inherited from Dry::Validation::Message
[], #eql?, #hint?, #initialize, #root?, #signature, #to_s
Constructor Details
This class inherits a constructor from Dry::Validation::Message
Instance Method Details
#each? ⇒ Boolean
22 23 24 |
# File 'lib/dry/validation/message.rb', line 22 def each? true end |
#index_path ⇒ Object
18 19 20 |
# File 'lib/dry/validation/message.rb', line 18 def index_path @index_path ||= [*path[0..path.size-2], Index] end |