495件ヒット
[1-100件を表示]
(0.084秒)
ライブラリ
-
rubygems
/ source _ index (11) - uri (484)
クラス
-
Gem
:: SourceIndex (11) -
URI
:: Generic (484)
キーワード
- + (11)
- - (11)
- == (11)
- absolute (11)
- absolute? (11)
- coerce (11)
- component (11)
-
default
_ port (11) -
find
_ proxy (11) - fragment (11)
- fragment= (11)
- hierarchical? (11)
- host (11)
- host= (11)
- hostname (11)
- hostname= (11)
- merge (11)
- merge! (11)
- normalize (11)
- normalize! (11)
- opaque (11)
- opaque= (11)
- parser (11)
- password (11)
- password= (11)
- path (11)
- path= (11)
- port (11)
- port= (11)
- query (11)
- query= (11)
- registry (11)
- registry= (11)
- relative? (11)
-
route
_ from (11) -
route
_ to (11) - scheme (11)
- scheme= (11)
- select (11)
-
to
_ s (11) - update (11)
- user (11)
- user= (11)
- userinfo (11)
- userinfo= (11)
検索結果
先頭5件
-
URI
:: Generic # -(src) -> URI :: Generic (21109.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 (21109.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 (21108.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>... -
URI
:: Generic # +(rel) -> URI :: Generic (21103.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo... -
URI
:: Generic # merge(rel) -> URI :: Generic (21103.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで与えます。
例:
require 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo... -
URI
:: Generic # normalize -> URI :: Generic (21102.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s #=> "http://example.com/" -
URI
:: Generic # hostname -> String | nil (21023.0) -
自身の hostname を文字列で返します。また、URI::Generic#host が設 定されていない場合は nil を返します。
...自身の hostname を文字列で返します。また、URI::Generic#host が設
定されていない場合は nil を返します。
このメソッドは URI::Generic#host に IPv6 アドレスが設定されていた
場合はブラケットを削除した文字列を返しますがそれ以... -
URI
:: Generic # component -> [Symbol] (21007.0) -
self.class.component を返します。
...self.class.component を返します。
@see URI::Generic.component... -
URI
:: Generic # default _ port -> Integer | nil (21007.0) -
self.class.default_port を返します。
...self.class.default_port を返します。
@see URI::Generic.default_port... -
URI
:: Generic # host -> String | nil (21007.0) -
自身の host を文字列で返します。設定されていない場合は nil を返します。
...自身の host を文字列で返します。設定されていない場合は nil を返します。
@see URI::Generic#hostname...