class Dry::Schema::Message::Or::SinglePath

@api public
@see Message::Or
Hints extension for Or messages

def dump

Other tags:
    Api: - public

Returns:
  • (String) -

Other tags:
    See: Message#dump -
def dump
  @dump ||= "#{left.dump} #{messages[:or][:text]} #{right.dump}"
end

def hint?

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

def initialize(*args, messages)

Other tags:
    Api: - private
def initialize(*args, messages)
  super(*args)
  @messages = messages
  @path = left.path
  @_path = left._path
end

def to_a

Other tags:
    Api: - private
def to_a
  @to_a ||= [left, right]
end

def to_h

Other tags:
    Api: - public

Returns:
  • (String) -

Other tags:
    See: Message#to_h -
def to_h
  @to_h ||= _path.to_h(dump)
end