Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > uriライブラリ > URI::Genericクラス
クラスの継承リスト: URI::Generic < URI < Object < Kernel < BasicObject
すべての URI クラスの基底クラスです。
定義 | 説明 | |
---|---|---|
build(ary) -> URI::Generic
|
引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。 |
|
build2(ary) -> URI::Generic
|
URI::Generic.build と同じですが、例外 URI::InvalidComponentError が発生した場合に、引数の各要素を URI.escape して再度 build を試み ます。 |
|
component -> [Symbol]
|
URI の構成要素を表すシンボルの配列を返します。 |
|
default_port -> Integer | nil
|
スキームに対応するデフォルトのポート番号を整数で返します。 |
|
new(scheme, userinfo, host, port, registry, path, opaque, query, fragment, arg_check = false) -> URI::Generic
|
各引数を成分とする URI::Generic オブジェクトを生成して返します。 |
|
use_registry -> bool
|
構成要素 registry を受け付けるなら true を返します。 URI::Generic クラスでは false です。 |
定義 | 説明 | |
---|---|---|
merge(rel) -> URI::Generic
|
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。 |
|
route_from(src) -> URI::Generic
|
与えられた URI を表す src からの相対パスを返します。 |
|
self == uri -> bool
|
引数に指定した URI (文字列またはURIオブジェクト)との一致判定を行い ます。URI は正規化して比較されます。 |
|
absolute -> bool
|
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。 |
|
component -> [Symbol]
|
self.class.component を返します。 |
|
default_port -> Integer | nil
|
self.class.default_port を返します。 |
|
fragment -> String | nil
|
自身の fragment を文字列で返します。設定されていない場合は nil を返します。 |
|
fragment=(s)
|
自身の fragment を設定します。 |
|
hierarchical? -> bool
|
自身に path が設定されているなら true を返します。そうでない場合は false を返します。 |
|
host -> String | nil
|
自身の host を文字列で返します。設定されていない場合は nil を返します。 |
|
host=(s)
|
自身の host を設定します。 |
|
merge!(rel) -> self
|
与えられたパス rel を自身へ連結します。 |
|
normalize -> URI::Generic
|
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。 |
|
opaque -> String | nil
|
自身の opaque を文字列で返します。設定されていない場合は nil を返します。 |
|
opaque=(s)
|
自身の opaque を設定します。 |
|
password -> String | nil
|
自身の password を文字列で返します。設定されていない場合は nil を返します。 |
|
password=(s)
|
自身の password を設定します。 |
|
path -> String | nil
|
自身の path を文字列で返します。設定されていない場合は nil を返します。 |
|
path=(s)
|
自身の path を設定します。 |
|
port -> String | nil
|
自身の port を文字列で返します。設定されていない場合は nil を返します。 |
|
port=(s)
|
自身の port を設定します。 |
|
query -> String | nil
|
自身の query を文字列で返します。設定されていない場合は nil を返します。 |
|
query=(s)
|
自身の query を設定します。 |
|
registry -> String | nil
|
自身の registry を文字列で返します。設定されていない場合は nil を返します。 |
|
registry=(s)
|
自身の registry を設定します。 |
|
relative? -> bool
|
自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。 |
|
route_to(dst) -> URI::Generic
|
自身から dst への相対パスを返します。 |
|
scheme -> String | nil
|
自身の scheme を文字列で返します。設定されていない場合は nil を返します。 |
|
scheme=(s)
|
自身の scheme を設定します。 |
|
select(*components) -> [String]
|
指定された components に対応する構成要素を文字列の配列として返します。 |
|
to_s -> String
|
自身が表す URI を文字列として返します。 |
|
user -> String | nil
|
自身の userinfo を文字列で返します。 |
|
user=(s)
|
自身の user を設定します。 |
|
userinfo -> String | nil
|
自身の userinfo を "username:password" という形式の文字列で返します。 設定されていない場合は nil を返します。 |
|
userinfo=(s)
|
自身の userinfo を設定します。 |
!
!=
===
=~
__id__
__send__
_dump
class
clone
dclone
display
enum_for
eql?
equal?
extend
freeze
frozen?
hash
initialize
initialize_copy
inspect
instance_eval
instance_exec
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
marshal_dump
marshal_load
method
method_missing
methods
must_be
must_be_close_to
must_be_empty
must_be_instance_of
must_be_kind_of
must_be_nil
must_be_same_as
must_be_within_epsilon
must_equal
must_include
must_match
must_raise
must_respond_to
must_send
must_throw
nil?
pretty_inspect
pretty_print
pretty_print_cycle
pretty_print_inspect
pretty_print_instance_variables
private_methods
protected_methods
public_methods
remove_instance_variable
respond_to?
respond_to_missing?
singleton_class
singleton_method_added
singleton_method_removed
singleton_method_undefined
singleton_methods
taint
tainted?
tap
to_a
to_ary
to_hash
to_int
to_io
to_proc
to_regexp
to_yaml
to_yaml_properties
to_yaml_style
trust
untaint
untrust
untrusted?
wont_be
wont_be_close_to
wont_be_empty
wont_be_instance_of
wont_be_kind_of
wont_be_nil
wont_be_same_as
wont_be_within_epsilon
wont_equal
wont_include
wont_match
wont_respond_to
::UNSAFE