module Dry::Types::Builder

def |(other)

Returns:
  • (Sum, Sum::Constrained) -

Parameters:
  • other (Type) --
def |(other)
  klass = constrained? && other.constrained? ? Sum::Constrained : Sum
  klass.new(self, other)
end