class Addressable::URI
def replace_self(uri)
-
(Addressable::URI)
-self
.
Parameters:
-
uri
(Addressable::URI
) -- The URI to replaceself
with.
def replace_self(uri) # Reset dependent values reset_ivs @scheme = uri.scheme @user = uri.user @password = uri.password @host = uri.host @port = uri.port @path = uri.path @query = uri.query @fragment = uri.fragment return self end