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