class Dry::Schema::Message::Or::SinglePath
def dump
- Api: - public
Returns:
-
(String)
-
Other tags:
- See: Message#dump -
def dump @dump ||= "#{left.dump} #{messages[:or]} #{right.dump}" end
def hint?
- Api: - private
def hint? false end
def initialize(*args, messages)
- Api: - private
def initialize(*args, messages) super(*args) @messages = messages @path = left.path @_path = left._path end
def to_a
- Api: - private
def to_a @to_a ||= [left, right] end
def to_h
- Api: - public
Returns:
-
(String)
-
Other tags:
- See: Message#to_h -
def to_h @to_h ||= _path.to_h(dump) end