class Dry::Types::Nominal

def try(input, &) = success(input)

Other tags:
    Api: - public

Returns:
  • (nil) - otherwise
  • (Result, Logic::Result) - when a block is not provided

Other tags:
    Yieldreturn: -

Other tags:
    Yieldparam: failure -

Parameters:
  • input (Object) --
def try(input, &) = success(input)