coerce(oth)
Instance Public methods
Args
- v
-
URI or String
Description
attempt to parse other URI +oth+ return [parsed_oth, self]
Usage
require 'uri' uri = URI.parse("http://my.example.com") uri.coerce("http://foo.com") #=> [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]
Please login to continue.