validates typecode v
, returns a true
or false
boolean
Private setter for the path of the URI::FTP
Returns a String representation of the URI::FTP
Returns default port
Returns default port
check the scheme v
component against the URI::Parser
Regexp
for :SCHEME
check the user v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :USERINFO
Can not have a registry or opaque component defined, with a user component defined.
check the password v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :USERINFO
Can not have a registry or opaque component defined, with a user component defined.
protected setter for the password component v
see also URI::Generic.password=
escapes ‘user:password’ v
based on RFC 1738 section 3.1
check the host v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :HOST
Can not have a registry or opaque component defined, with a host component defined.
check the port v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :PORT
Can not have a registry or opaque component defined, with a port component defined.
check the path v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :ABS_PATH and :REL_PATH
Can not have a opaque component defined, with a path component defined.
check the opaque v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :OPAQUE
Can not have a host, port, user or path component defined, with an opaque component defined.
returns an Array of the path split on ‘/’
Merges a base path base
, with relative path rel
, returns a modified base path.
oth
URI
or String
Calculates relative path from oth to self
require 'uri' uri = URI.parse('http://my.example.com/main.rbx?page=1') p uri.route_from('http://my.example.com') #=> #<URI::Generic:0x20218858 URL:/main.rbx?page=1>