method
parse
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
parse(uri)
public
Synopsis
URI::parse(uri_str)
Args
uri_str: | String with URI. |
Description
Creates one of the URI's subclasses instance from the string.
Raises
Raised if URI given is not a correct one.
Usage
require 'uri' uri = URI.parse("http://www.ruby-lang.org/") p uri # => #<URI::HTTP:0x202281be URL:http://www.ruby-lang.org/> p uri.scheme # => "http" p uri.host # => "www.ruby-lang.org"