Module: EmailVeracity::Validatability
Instance Method Summary collapse
Instance Method Details
#errors ⇒ Object
8 9 10 11 12 |
# File 'lib/email_veracity/validatability.rb', line 8 def errors self.clear_errors! self.validate! @errors end |
#valid? ⇒ Boolean
4 5 6 |
# File 'lib/email_veracity/validatability.rb', line 4 def valid? self.errors.empty? end |