split(uri)
public
Synopsis
URI::split(uri)
Args
Description
Splits the string on following parts and returns array with result:
-
Scheme
-
Userinfo
-
Host
-
Port
-
Registry
-
Path
-
Opaque
-
Query
-
Fragment
Usage
require 'uri'
URI.split("http://www.ruby-lang.org/")
Show source
def self.split(uri)
RFC3986_PARSER.split(uri)
end