class Dry::Types::Map
def try(hash)
- Api: - public
Returns:
-
(Result)
-
Parameters:
-
hash
(Hash
) --
def try(hash) result = coerce(hash) return result if result.success? || !block_given? yield(result) end
(Result)
-
hash
(Hash
)
--
def try(hash) result = coerce(hash) return result if result.success? || !block_given? yield(result) end