class Truemail::Validate::Regex

Constants

ERROR

Public Instance Methods

run() click to toggle source
# File lib/truemail/validate/regex.rb, line 8
def run
  return true if success(match_regex_pattern?)
  add_error(Truemail::Validate::Regex::ERROR)
  false
end

Private Instance Methods

match_regex_pattern?() click to toggle source
# File lib/truemail/validate/regex.rb, line 16
def match_regex_pattern?
  configuration.email_pattern.match?(result.email)
end