Module: RichEmailValidator
- Defined in:
- lib/rich_email_validator.rb,
lib/rich_email_validator/version.rb,
lib/rich_email_validator/file_validator.rb,
lib/rich_email_validator/list_validator.rb,
lib/rich_email_validator/email_validator.rb
Overview
RichEmailValidator top level module
Defined Under Namespace
Classes: EmailValidator, FileValidator, ListValidator, Version
Class Method Summary collapse
-
.export_valid_list(input_file_path, output_file_path, options = {}) ⇒ Object
Validates input from file and writes to file.
-
.filter_file(input_file_path, options = {}) ⇒ Array
Validates input from file.
-
.filter_list(list, options = {}) ⇒ Array
Validates list of emails.
-
.valid_email?(email) ⇒ Boolean
Validates an email.
Class Method Details
.export_valid_list(input_file_path, output_file_path, options = {}) ⇒ Object
Validates input from file and writes to file
42 43 44 45 46 |
# File 'lib/rich_email_validator.rb', line 42 def export_valid_list(input_file_path, output_file_path, = {}) FileValidator.export_valid_list(input_file_path, output_file_path, ) end |
.filter_file(input_file_path, options = {}) ⇒ Array
Validates input from file
32 33 34 |
# File 'lib/rich_email_validator.rb', line 32 def filter_file(input_file_path, = {}) FileValidator.filter(input_file_path, ) end |
.filter_list(list, options = {}) ⇒ Array
Validates list of emails
22 23 24 |
# File 'lib/rich_email_validator.rb', line 22 def filter_list(list, = {}) ListValidator.filter(list, ) end |
.valid_email?(email) ⇒ Boolean
Validates an email
12 13 14 |
# File 'lib/rich_email_validator.rb', line 12 def valid_email?(email) EmailValidator.valid?(email) end |