class Dry::Types::Map

def try(hash)

Other tags:
    Api: - public

Returns:
  • (Result) -

Parameters:
  • hash (Hash) --
def try(hash)
  result = coerce(hash)
  return result if result.success? || !block_given?
  yield(result)
end