Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.
merge0(oth)private
return base and rel. you can modify `base’, but can not `rel’.
# File lib/uri/generic.rb, line 1139
def merge0(oth)
oth = parser.send(:convert_to_uri, oth)
if self.relative? && oth.relative?
raise BadURIError,
"both URI are relative"
end
if self.absolute? && oth.absolute?
#raise BadURIError,
# "both URI are absolute"
# hmm... should return oth for usability?
return oth, oth
end
if self.absolute?
return self.dup, oth
else
return oth, oth
end
end Related methods
- Instance methods
- +
- -
- ==
- absolute
- absolute?
- coerce
- component
- default_port
- eql?
- find_proxy
- fragment=
- hash
- hierarchical?
- host=
- hostname
- hostname=
- inspect
- merge
- merge!
- normalize
- normalize!
- opaque=
- parser
- password
- password=
- path=
- port=
- query=
- registry
- registry=
- relative?
- route_from
- route_to
- scheme=
- select
- to_s
- user
- user=
- userinfo
- userinfo=
- Class methods
- build
- build2
- component
- default_port
- new
- use_registry
- Protected methods
-
component_ary -
set_host -
set_opaque -
set_password -
set_path -
set_port -
set_registry -
set_scheme -
set_user -
set_userinfo - Private methods
-
check_host -
check_opaque -
check_password -
check_path -
check_port -
check_registry -
check_scheme -
check_user -
check_userinfo -
escape_userpass -
merge0 -
merge_path -
replace! -
split_path -
split_userinfo