class Dry::Schema::Message::Or::MultiPath::MessageArray
@api private
Public Class Methods
new(messages)
click to toggle source
@api private
# File lib/dry/schema/message/or/multi_path.rb, line 17 def initialize(messages) @messages = messages.flatten end
Public Instance Methods
_paths()
click to toggle source
@api private
# File lib/dry/schema/message/or/multi_path.rb, line 22 def _paths @messages.map(&:_path) end
to_h()
click to toggle source
@api private
# File lib/dry/schema/message/or/multi_path.rb, line 32 def to_h MessageSet.new(@messages).to_h end
to_or(root)
click to toggle source
@api private
# File lib/dry/schema/message/or/multi_path.rb, line 27 def to_or(root) self.class.new(@messages.map { _1.to_or(root) }) end