Class: Dry::Schema::Hint Private

Inherits:
Message show all
Defined in:
lib/dry/schema/message.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A hint message sub-type

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, #to_s

Constructor Details

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

Class Method Details

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

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

Instance Method Details

#hint?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


98
99
100
# File 'lib/dry/schema/message.rb', line 98

def hint?
  true
end