Base class for all URI classes. Implements generic URI syntax as per RFC 2396.
| Constants | |
|---|---|
| COMPONENT | |
| DEFAULT_ |
|
| USE_ |
|
| Public Attributes | |
|---|---|
| fragment | |
| host | |
| opaque | |
| path | |
| port | |
| query | |
| registry | |
| scheme | |
| Public Methods | |
|---|---|
| + | Alias for #merge |
| - | Alias for #route_from |
| == | Compares to URI’s |
| absolute | Alias for #absolute? |
| absolute? | Checks if URI is an absolute one |
| build | See #new |
| build2 | See #new |
| coerce | |
| component | Components of the URI in the order. |
| component | |
| default_ |
Returns default port |
| default_ |
|
| eql? | |
| find_ |
returns a proxy URI. The proxy URI is obtained from environment variables such as http_proxy, ftp_proxy, no_proxy, etc. If there is no proper proxy, nil is returned. |
| fragment= | |
| hash | |
| hierarchical? | Checks if URI has a path |
| host= | |
| inspect | |
| merge | Merges two URI’s. |
| merge! | Destructive form of #merge |
| new | Creates a new URI::Generic instance from ``generic’’ components without check. |
| normalize | Returns normalized URI |
| normalize! | Destructive version of #normalize |
| opaque= | |
| password | |
| password= | |
| path= | |
| port= | |
| query= | |
| registry= | |
| relative? | Checks if URI is relative |
| route_ |
Calculates relative path from oth to self |
| route_ |
Calculates relative path to oth from self |
| scheme= | |
| select | Selects specified components from URI |
| to_ |
Constructs String from URI |
| use_ |
DOC: FIXME! |
| user | |
| user= | |
| userinfo | |
| userinfo= | Sets userinfo, argument is string like ‘name:pass’ |
| Protected Methods | |
|---|---|
| component_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| set_ |
|
| Private Methods | |
|---|---|
| check_ |
|
| check_ |
|
| check_ |
|
| check_ |
|
| check_ |
|
| check_ |
|
| check_ |
|
| check_ |
|
| check_ |
|
| check_ |
|
| check_ |
|
| escape_ |
|
| merge0 | return base and rel. you can modify `base’, but can not `rel’. |
| merge_ |
|
| path_ |
|
| replace! | replace self by other URI object |
| route_ |
|
| route_ |
|
| split_ |
|
| split_ |
|
<code/>and<pre/>for code samples.