class EmailInquire::Validator::CommonlyMistakenDomain
Constants
- MISTAKES
Public Instance Methods
validate()
click to toggle source
# File lib/email_inquire/validator/commonly_mistaken_domain.rb, line 14 def validate return response.valid! if MISTAKES.value?(domain) _mistake, reference = MISTAKES.find do |mistake, _reference| mistake =~ domain end response.hint!(domain: reference) if reference end