coerce(oth)
public
Args
Description
attempts to parse other URI oth, returns
[parsed_oth, self]
Usage
require 'uri'
uri = URI.parse("http://my.example.com")
uri.coerce("http://foo.com")
# File lib/uri/generic.rb, line 1464
def coerce(oth)
case oth
when String
oth = parser.parse(oth)
else
super
end
return oth, self
end