merge0(oth)
private
return base and rel. you can modify `base’, but can not `rel’.
Show source
def merge0(oth)
case oth
when Generic
when String
oth = @parser.parse(oth)
else
raise ArgumentError,
"bad argument(expected URI object or URI string)"
end
if self.relative? && oth.relative?
raise BadURIError,
"both URI are relative"
end
if self.absolute? && oth.absolute?
return oth, oth
end
if self.absolute?
return self.dup, oth
else
return oth, oth
end
end