class Dry::Types::Constructor::Function::Safe
Wrapper
for unsafe coercion functions
@api private
Public Instance Methods
call(input, &block)
click to toggle source
# File lib/dry/types/constructor/function.rb, line 16 def call(input, &block) @fn.(input, &block) rescue ::NoMethodError, ::TypeError, ::ArgumentError => e CoercionError.handle(e, &block) end