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")
Show source
def coerce(oth)
case oth
when String
oth = parser.parse(oth)
else
super
end
return oth, self
end