class URI
- URI
- Reference
- Object
Overview
Punycode
provides an interface for IDNA encoding (RFC 5980),
which is defined in RFC 3493
Implementation based on Mathias Bynens punnycode.js
project
https://github.com/bestiejs/punycode.js/
RFC 3492: Method to use non-ascii characters as host name of URI https://www.ietf.org/rfc/rfc3492.txt
RFC 5980: Internationalized Domain Names in Application https://www.ietf.org/rfc/rfc5980.txt
Defined in:
arachnid/extensions/uri.crClass Method Summary
-
.expand_path(path)
Expands a URI decoded path, into a proper absolute path.
Instance Method Summary
Class Method Detail
Expands a URI decoded path, into a proper absolute path.
@param [String] path The path from a URI.
@return [String] The expanded path.
@example URI.expand_path("./path") # => "path"
@example URI.expand_path("test/../path") # => "path"
@example URI.expand_path("/test/path/") # => "/test/path/"
@example URI.expand_path("/test/../path") # => "/path"