lib/whyvalidationssuckin96/validation.rb
# Performs the validation, returning true or false if the validation passes or fails,
# or nil if the validation will not run.
# @return [true, false, nil]
Performs the validation, returning true or false if the validation passes or fails,
or nil if the validation will not run.
Performs the validation returning true or false if the validation passes or fails or nil if the validation will not run .
def validates?
      reset
      @passed = catch :validation_done do
        validate
        pass
      end
    end
def validates? reset @passed = catch :validation_done do validate pass end end
Performs the validation, returning true or false if the validation passes or fails,
or nil if the validation will not run.
Performs the validation returning true or false if the validation passes or fails or nil if the validation will not run .
None
true, false, nil