Sha256: 07d5ab67564b79ac4c001f445308e6d35dfcb76daed5879ae65b64ec905cc0c2
Contents?: true
Size: 1.63 KB
Versions: 2
Compression:
Stored size: 1.63 KB
Contents
require_relative 'rich_email_validator/version' require_relative 'rich_email_validator/email_validator' require_relative 'rich_email_validator/list_validator' require_relative 'rich_email_validator/file_validator' # RichEmailValidator top level module module RichEmailValidator class << self # Validates an email # @param email [String] # @return [Boolean] def valid_email?(email) EmailValidator.valid?(email) end # Validates list of emails # @param list [Enumerator] # @param [Hash] options # @option options [#to_int] :threads_count number of threads that will # be fired simultaneously to calculate the result # @return [Array] def filter_list(list, options = {}) ListValidator.filter(list, options) end # Validates input from file # @param input_file_path [File] # @param [Hash] options # @option options [#to_int] :threads_count number of threads that will # be fired simultaneously to calculate the result # @return [Array] def filter_file(input_file_path, options = {}) FileValidator.filter(input_file_path, options) end # Validates input from file and writes to file # @param input_file_path [File] # @param output_file_path [File] # @param [Hash] options # @option options [#to_int] :threads_count number of threads that will # be fired simultaneously to calculate the result def export_valid_list(input_file_path, output_file_path, options = {}) FileValidator.export_valid_list(input_file_path, output_file_path, options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rich_email_validator-0.0.2 | lib/rich_email_validator.rb |
rich_email_validator-0.0.1 | lib/rich_email_validator.rb |