Class: Truemail::Validate::Regex
- Defined in:
- lib/truemail/validate/regex.rb
Constant Summary collapse
- ERROR =
'email does not match the regular expression'
Instance Attribute Summary
Attributes inherited from Worker
Instance Method Summary collapse
Methods inherited from Worker
Constructor Details
This class inherits a constructor from Truemail::Worker
Instance Method Details
#run ⇒ Object
8 9 10 11 12 |
# File 'lib/truemail/validate/regex.rb', line 8 def run return true if success(configuration.email_pattern.match?(result.email)) add_error(Truemail::Validate::Regex::ERROR) false end |