種類
- インスタンスメソッド (540)
- 特異メソッド (120)
- 定数 (24)
- クラス (12)
- モジュール関数 (12)
ライブラリ
-
net
/ http (12) -
rubygems
/ source _ index (12) - uri (684)
クラス
-
Gem
:: SourceIndex (12) -
Net
:: HTTP (12) -
URI
:: Generic (648)
キーワード
- + (12)
- - (12)
- == (12)
- COMPONENT (12)
-
DEFAULT
_ PORT (12) - Generic (12)
- URI (12)
- absolute (12)
- absolute? (12)
- build (24)
- build2 (24)
- coerce (12)
- component (24)
-
default
_ port (24) -
find
_ proxy (12) - fragment (12)
- fragment= (12)
- hierarchical? (12)
- host (12)
- host= (12)
- hostname (12)
- hostname= (12)
- merge (12)
- merge! (12)
- new (24)
- normalize (12)
- normalize! (12)
- opaque (12)
- opaque= (12)
- parse (12)
- parser (12)
- password (12)
- password= (12)
- path (12)
- path= (12)
- port (12)
- port= (12)
- query (12)
- query= (12)
- registry (12)
- registry= (12)
- relative? (12)
-
route
_ from (12) -
route
_ to (12) - scheme (12)
- scheme= (12)
- select (12)
-
to
_ s (12) - update (12)
-
use
_ registry (12) - user (12)
- user= (12)
- userinfo (12)
- userinfo= (12)
検索結果
先頭5件
-
URI
:: Generic (23000.0) -
すべての URI クラスの基底クラスです。
すべての URI クラスの基底クラスです。
hash と eql? が再定義されているため、Hash のキーとして
利用することができます。 -
URI
:: Generic . build(ary) -> URI :: Generic (21118.0) -
引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。
...引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。
@param ary 構成要素を表す配列を与えます。要素は以下の順です。
//emlist{
[scheme, userinfo, host, port, registry, path, opaque, query, fragment]
//}
@param hash 構... -
URI
:: Generic . build(hash) -> URI :: Generic (21118.0) -
引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。
...引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。
@param ary 構成要素を表す配列を与えます。要素は以下の順です。
//emlist{
[scheme, userinfo, host, port, registry, path, opaque, query, fragment]
//}
@param hash 構... -
URI
:: Generic . build2(ary) -> URI :: Generic (21118.0) -
URI::Generic.build と同じですが、例外 URI::InvalidComponentError が発生した場合に、引数の各要素を URI.escape して再度 build を試み ます。
...
URI::Generic.build と同じですが、例外 URI::InvalidComponentError
が発生した場合に、引数の各要素を URI.escape して再度 build を試み
ます。
@param ary 構成要素を表す文字列の配列を与えます。要素は以下の順です。
//emlist{
[scheme, u... -
URI
:: Generic . build2(hash) -> URI :: Generic (21118.0) -
URI::Generic.build と同じですが、例外 URI::InvalidComponentError が発生した場合に、引数の各要素を URI.escape して再度 build を試み ます。
...
URI::Generic.build と同じですが、例外 URI::InvalidComponentError
が発生した場合に、引数の各要素を URI.escape して再度 build を試み
ます。
@param ary 構成要素を表す文字列の配列を与えます。要素は以下の順です。
//emlist{
[scheme, u... -
URI
:: Generic . new(scheme , userinfo , host , port , registry , path , opaque , query , fragment , parser = URI :: DEFAULT _ PARSER , arg _ check = false) -> URI :: Generic (21117.0) -
各引数を成分とする URI::Generic オブジェクトを生成して返します。
...各引数を成分とする URI::Generic オブジェクトを生成して返します。
@param scheme 構成要素 scheme を表す文字列を与えます。
@param userinfo 構成要素を表す文字列を与えます。
@param host 構成要素を表す文字列を与えます。
@param p... -
URI
:: Generic # -(src) -> URI :: Generic (21108.0) -
与えられた URI を表す src からの相対パスを返します。
...rc からの相対パスを返します。
@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。
例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.html>... -
URI
:: Generic # route _ from(src) -> URI :: Generic (21108.0) -
与えられた URI を表す src からの相対パスを返します。
...rc からの相対パスを返します。
@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。
例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.html>... -
URI
:: Generic # route _ to(dst) -> URI :: Generic (21107.0) -
自身から dst への相対パスを返します。
...自身から dst への相対パスを返します。
@param dst URI を文字列かURIオブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/').route_to('http://example.com/foo/bar.html')
#=> #<URI::Generic:0x20100198 URL:foo/bar.html>...