Module: Truemail::Dns
- Defined in:
- lib/truemail/core.rb,
lib/truemail/dns/worker.rb,
lib/truemail/dns/resolver.rb,
lib/truemail/dns/punycode_representer.rb
Defined Under Namespace
Constant Summary collapse
- PunycodeRepresenter =
::Class.new do require 'simpleidn' def self.call(email) return unless email.is_a?(::String) return email if email.ascii_only? user, domain = email.split('@') "#{user}@#{SimpleIDN.to_ascii(domain.downcase)}" end end