Sha256: 07fac18509d27306c019614126099c73a547e142cda3477ea0f622d040ed1419

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

module Validators
  class DisposableDomains
    def self.all
      @all ||=
        begin
          Validators.require_dependency! "root_domain"
          Validators.require_dependency! "email_data"
          EmailData.disposable_domains
        end
    end

    def self.include?(domain)
      all.include?(domain)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
validators-3.4.2 lib/validators/disposable_domains.rb
validators-3.4.1 lib/validators/disposable_domains.rb