Class: Dry::Validation::Hint

Inherits:
Message
  • Object
show all
Defined in:
lib/dry/validation/message.rb

Instance Attribute Summary

Attributes inherited from Message

#args, #options, #path, #predicate, #rule, #text

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Message

#eql?, #initialize, #root?, #signature, #to_s

Constructor Details

This class inherits a constructor from Dry::Validation::Message

Class Method Details

.[](predicate, path, text, options) ⇒ Object



89
90
91
# File 'lib/dry/validation/message.rb', line 89

def self.[](predicate, path, text, options)
  Hint.new(predicate, path, text, options)
end

Instance Method Details

#hint?Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/dry/validation/message.rb', line 93

def hint?
  true
end