parse(uri)
Class Public methods
Synopsis
1 | URI : :parse (uri_str) |
Args
-
uri_str
-
String with URI.
Description
Creates one of the URI's subclasses instance from the string.
Raises
1 | Raised if URI given is not a correct one. |
Usage
1 2 3 4 5 6 7 8 9 | require 'uri' p uri # => #<URI::HTTP:0x202281be URL:http://www.ruby-lang.org/> p uri.scheme # => "http" p uri.host # => "www.ruby-lang.org" |
Please login to continue.