Module: DnsMock::Representer
- Defined in:
- lib/dns_mock/core.rb,
lib/dns_mock/representer/punycode.rb,
lib/dns_mock/representer/rdns_lookup.rb
Defined Under Namespace
Classes: RdnsLookup
Constant Summary collapse
- Punycode =
::Class.new do require 'simpleidn' def self.call(hostname) return hostname if hostname.ascii_only? SimpleIDN.to_ascii(hostname) end end