module Dry::Types::Builder
def |(other)
- Api: - private
Returns:
-
(Sum, Sum::Constrained)
-
Parameters:
-
other
(Type
) --
def |(other) klass = constrained? && other.constrained? ? Sum::Constrained : Sum klass.new(self, other) end