Class

Generic

Extends:

Includes: ,

Base class for all URI classes. Implements generic URI syntax as per RFC 2396.

Constants
COMPONENT
DEFAULT_PORT
USE_REGISTRY
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_port Returns default port
default_port
eql?
find_proxy 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_from Calculates relative path from oth to self
route_to Calculates relative path to oth from self
scheme=
select Selects specified components from URI
to_s Constructs String from URI
use_registry DOC: FIXME!
user
user=
userinfo
userinfo= Sets userinfo, argument is string like ‘name:pass’
Protected Methods
component_ary
set_fragment
set_host
set_opaque
set_password
set_path
set_port
set_query
set_registry
set_scheme
set_user
set_userinfo
Private Methods
check_fragment
check_host
check_opaque
check_password
check_path
check_port
check_query
check_registry
check_scheme
check_user
check_userinfo
escape_userpass
merge0 return base and rel. you can modify `base’, but can not `rel’.
merge_path
path_query
replace! replace self by other URI object
route_from0
route_from_path
split_path
split_userinfo
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.