class Dry::Schema::Message

@api public
@see Message
Hint-specific Message extensions

def <=>(other)

Other tags:
    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

Other tags:
    Api: - public

Returns:
  • (String, Hash) -
def dump
  @dump ||= meta.empty? ? text : { text: text, **meta }
end

def eql?(other)

Other tags:
    Api: - private

Returns:
  • (Boolean) -

Parameters:
  • other (Message, String) --
def eql?(other)
  other.is_a?(String) ? text == other : super
end

def hint?

Other tags:
    Api: - private
def hint?
  false
end