540件ヒット
[1-100件を表示]
(0.222秒)
ライブラリ
-
rubygems
/ source _ index (12) - uri (528)
クラス
-
Gem
:: SourceIndex (12) -
URI
:: Generic (528)
キーワード
- + (12)
- - (12)
- == (12)
- absolute (12)
- absolute? (12)
- coerce (12)
- component (12)
-
default
_ port (12) -
find
_ proxy (12) - fragment (12)
- fragment= (12)
- hierarchical? (12)
- host (12)
- host= (12)
- hostname (12)
- hostname= (12)
- merge (12)
- merge! (12)
- normalize (12)
- normalize! (12)
- opaque (12)
- opaque= (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)
- user (12)
- user= (12)
- userinfo (12)
- userinfo= (12)
検索結果
先頭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...