5件ヒット
[1-5件を表示]
(0.075秒)
クラス
-
URI
:: Generic (3) -
URI
:: LDAP (2)
キーワード
- attributes (1)
- attributes= (1)
- path (1)
- path= (1)
- relative? (1)
検索結果
先頭5件
-
URI
:: Generic # path -> String | nil (36610.0) -
自身の path を文字列で返します。設定されていない場合は nil を返します。
...します。
require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> nil
p URI('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').... -
URI
:: Generic # path=(s) (36610.0) -
自身の path を設定します。
...自身の path を設定します。
@param s 自身の path を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError opaque と path を同時に設定した場合に発生します。... -
URI
:: Generic # relative? -> bool (36610.0) -
自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').relative? #=> false
p URI.parse('./').relative? #=> true... -
URI
:: LDAP # attributes -> String (36610.0) -
自身の Attribute を文字列で返します。
自身の Attribute を文字列で返します。 -
URI
:: LDAP # attributes=(s) (36610.0) -
自身の Attribute を文字列で設定します。
自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。