method
split
v2_6_3 -
Show latest stable
- Class:
URI
split(uri)public
Synopsis
URI::split(uri)
Args
uri |
Description
Splits the string on following parts and returns array with result:
-
Scheme
-
Userinfo
-
Host
-
Port
-
Registry
-
Opaque
-
Query
-
Fragment
Usage
require 'uri' URI.split("http://www.ruby-lang.org/") # => ["http", nil, "www.ruby-lang.org", nil, nil, "/", nil, nil, nil]