Class: Dry::Validation::Message::Each

Inherits:
Dry::Validation::Message show all
Defined in:
lib/dry/validation/message.rb

Constant Summary

Constants inherited from Dry::Validation::Message

Index

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

Returns:

  • (Boolean)


22
23
24
# File 'lib/dry/validation/message.rb', line 22

def each?
  true
end

#index_pathObject



18
19
20
# File 'lib/dry/validation/message.rb', line 18

def index_path
  @index_path ||= [*path[0..path.size-2], Index]
end