class Dry::Types::Constructor::Function::MethodCall::PrivateSafeCall
Coercion via an unsafe private method call
@api private
Public Instance Methods
call(input, &block)
click to toggle source
# File lib/dry/types/constructor/function.rb, line 96 def call(input, &block) @target.send(@name, input) rescue ::NoMethodError, ::TypeError, ::ArgumentError => e CoercionError.handle(e, &block) end