class URI::Punycode inherits Reference ¶ Punycode provides an interface for IDNA encoding (RFC 5980), defined in RFC 3492. Implementation based on Mathias Bynens' punnycode.js project. Class methods¶ .decode(string) ¶ View source .encode(string, io) ¶ View source .encode(string) ¶ View source .to_ascii(string) ¶ View source