Method: Hoodoo::Errors#clear_errors

Defined in:
lib/hoodoo/errors/errors.rb

#clear_errorsObject

Clear (delete) all previously added errors (if any). After calling here, #has_errors? would always return false.



227
228
229
230
# File 'lib/hoodoo/errors/errors.rb', line 227

def clear_errors
  @errors           = []
  @http_status_code = 200
end