Module: EmailVeracity::Validatability

Included in:
Address, Domain
Defined in:
lib/email_veracity/validatability.rb

Instance Method Summary collapse

Instance Method Details

#errorsObject



8
9
10
11
12
# File 'lib/email_veracity/validatability.rb', line 8

def errors
  self.clear_errors!
  self.validate!
  @errors
end

#valid?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/email_veracity/validatability.rb', line 4

def valid?
  self.errors.empty?
end