class Dry::Schema::TypesMerger
@api private
underlying types (schemas, nominals, etc.)
account the type of logical operation (or, and, implication) and the
Combines multiple logical operations into a single type, taking into
def call(op_class, lhs, rhs)
- Api: - private
def call(op_class, lhs, rhs) lhs.merge(rhs) do |_k, old, new| ValueMerger.new(self, op_class, old, new).call end end
def initialize(type_registry = TypeRegistry.new)
def initialize(type_registry = TypeRegistry.new) @type_registry = type_registry end