class Dry::Schema::Message
@api public
@see Message
Hint-specific Message extensions
def <=>(other)
- Api: - private
def <=>(other) l_path = Path[path] r_path = Path[other.path] unless l_path.same_root?(r_path) raise ArgumentError, 'Cannot compare messages from different root paths' end l_path <=> r_path end
def dump
- Api: - public
Returns:
-
(String, Hash)
-
def dump @dump ||= meta.empty? ? text : { text: text, **meta } end
def eql?(other)
- Api: - private
Returns:
-
(Boolean)
-
Parameters:
-
other
(Message, String
) --
def eql?(other) other.is_a?(String) ? text == other : super end
def hint?
- Api: - private
def hint? false end