120件ヒット
[1-100件を表示]
(0.022秒)
別のキーワード
クラス
-
URI
:: Generic (96) -
URI
:: LDAP (24)
キーワード
- + (12)
- == (12)
- absolute (12)
- absolute? (12)
- attributes (12)
- attributes= (12)
- component (12)
- hierarchical? (12)
- merge (12)
- relative? (12)
検索結果
先頭5件
-
URI
:: Generic # absolute -> bool (6103.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 (6103.0) -
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false... -
URI
:: LDAP # attributes -> String (6103.0) -
自身の Attribute を文字列で返します。
...自身の Attribute を文字列で返します。... -
URI
:: LDAP # attributes=(s) (6103.0) -
自身の Attribute を文字列で設定します。
...自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。... -
URI
:: Generic # ==(uri) -> bool (103.0) -
引数に指定した URI (文字列またはURIオブジェクト)との一致判定を行い ます。URI は正規化して比較されます。
...した URI (文字列またはURIオブジェクト)との一致判定を行い
ます。URI は正規化して比較されます。
@param uri 比較したい URI を URI オブジェクトで指定します。
例:
require 'uri'
u1 = URI.parse('http://example.com/?hoge')
u2 = URI.parse('ht... -
URI
:: Generic # component -> [Symbol] (103.0) -
self.class.component を返します。
...self.class.component を返します。
@see URI::Generic.component... -
URI
:: Generic # hierarchical? -> bool (103.0) -
自身に path が設定されているなら true を返します。そうでない場合は false を返します。
自身に path が設定されているなら true を返します。そうでない場合は false を返します。 -
URI
:: Generic # relative? -> bool (103.0) -
自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').relative? #=> false
p URI.parse('./').relative? #=> true... -
URI
:: Generic # +(rel) -> URI :: Generic (39.0) -
自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。
...結した新しい URI オブジェクトを生成して返します。
3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。
@param rel 連結したいパスを文字列か URI オブジェクトで......'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo/bar.html>
URI('http://a/b/c/d;p?q').merge('?y') #=> #<URI::HTTP:0xb7ca2e2c URL:http://a/b/c/d;p?y>
URI('http://a/b/c/d;p?q').merge('/./g') #=> #<URI::HTTP:0xb7......a2738 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('/../g') #=> #<URI::HTTP:0xb7ca2008 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../g') #=> #<URI::HTTP:0xb7ca1888 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../../g') #=> #<URI::HTTP:0xb7ca10a4 URL:http://a...