lib/validation/condition.rb
def RESCUE(exception, *exceptions, &condition)
      exceptions = [exception, *exceptions]
      raise ArgumentError unless conditionable? condition
      raise TypeError unless exceptions.all?{|e|e.ancestors.include? Exception}

      ->v{
        begin
          _valid? condition, v
        rescue *exceptions
          true
        rescue Exception
          false
        else
          false
        end
      }
    end
def RESCUE(exception, *exceptions, &condition)
      exceptions = [exception, *exceptions]
      raise ArgumentError unless conditionable? condition
      raise TypeError unless exceptions.all?{|e|e.ancestors.include? Exception}

      ->v{
        begin
          _valid? condition, v
        rescue *exceptions
          true
        rescue Exception
          false
        else
          false
        end
      }
    end
def RESCUE ( exception , * exceptions , & condition ) exceptions = [ exception , exceptions ] raise ArgumentError unless conditionable? condition raise TypeError unless exceptions . all? { | e | e . ancestors . include? Exception } -> v { begin _valid? condition , v rescue exceptions true rescue Exception false else false end } end
A condition builder.
 @param exception [Exception]
 @param exceptions [Exception]
 @return [lambda]
   this lambda return true
   if catch any kindly exceptions when a argment checking in a block parameter
A condition builder .