540件ヒット
[101-200件を表示]
(0.100秒)
ライブラリ
-
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 # 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... -
URI
:: Generic # host=(s) (21007.0) -
自身の host を設定します。
...を設定します。
@param s 自身の host を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError host と registry を同時に設定した場合に発生します。
@see URI::Generic#hostname=... -
URI
:: Generic # hostname=(s) (21007.0) -
自身の hostname を設定します。
...自身の hostname を設定します。
このメソッドは引数に IPv6 アドレスを設定した場合は
URI::Generic#host にブラケットを追加した文字列を設定しますがそれ
以外は同じ処理を行います。
require 'uri'
u = URI("http://foo/bar")
p u.to_s... -
URI
:: Generic # normalize! -> String | nil (21002.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 # ==(uri) -> bool (21001.0) -
引数に指定した URI (文字列またはURIオブジェクト)との一致判定を行い ます。URI は正規化して比較されます。
引数に指定した URI (文字列またはURIオブジェクト)との一致判定を行い
ます。URI は正規化して比較されます。
@param uri 比較したい URI を URI オブジェクトで指定します。
例:
require 'uri'
u1 = URI.parse('http://example.com/?hoge')
u2 = URI.parse('http://Example.Com/?hoge')
p u1 == u2 #=> true -
URI
:: Generic # absolute -> bool (21001.0) -
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false -
URI
:: Generic # absolute? -> bool (21001.0) -
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false -
URI
:: Generic # coerce(oth) -> [URI , URI] (21001.0) -
引数 oth をパースして [パース後の oth, self] の配列を返します。
引数 oth をパースして [パース後の oth, self] の配列を返します。
@param oth URI オブジェクトか文字列を指定します。
例:
require 'uri'
uri = URI.parse("http://my.example.com")
uri.coerce("http://foo.com")
# => [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]