class Dry::Types::Sum::Constrained
def call(input)
-
(ConstraintError)
- if given +input+ not passing {#try}
Returns:
-
(Object)
-
Parameters:
-
input
(Object
) --
def call(input) try(input) do |result| raise ConstraintError.new(result, input) end.input end