Sha256: ae2ce87e806c7390dd2d321ef5ad96045f585038a94d025a51f362e6f2e46f66
Contents?: true
Size: 913 Bytes
Versions: 2
Compression:
Stored size: 913 Bytes
Contents
# frozen_string_literal: true require "email_inquire/version" require "email_inquire/inquirer" module EmailInquire def self.validate(email) inquirer = Inquirer.new(email) inquirer.validate end def self.custom_invalid_domains=(domains) @custom_invalid_domains = case domains when Set, nil domains when Array domains.to_set else raise ArgumentError, "Unsupported type in `custom_invalid_domains=`" end end def self.custom_invalid_domains @custom_invalid_domains ||= Set.new end def self.custom_valid_domains=(domains) @custom_valid_domains = case domains when Set, nil domains when Array domains.to_set else raise ArgumentError, "Unsupported type in `custom_valid_domains=`" end end def self.custom_valid_domains @custom_valid_domains ||= Set.new end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
email_inquire-0.11.0 | lib/email_inquire.rb |
email_inquire-0.10.0 | lib/email_inquire.rb |