Method: PureValidator::ValidationErrors#clear

Defined in:
lib/pure_validator/validation_errors.rb

#clearObject

Clear the error messages.

errors.full_messages # => ["name can not be nil"]
errors.clear
errors.full_messages # => []


13
14
15
# File 'lib/pure_validator/validation_errors.rb', line 13

def clear
  messages.clear
end