クラス
-
URI
:: FTP (66) -
URI
:: Generic (594) -
URI
:: HTTP (44) -
URI
:: LDAP (143) -
URI
:: LDAPS (11) -
URI
:: MailTo (99)
キーワード
- + (11)
- - (11)
- == (11)
- BadURIError (11)
- COMPONENT (11)
-
DEFAULT
_ PORT (22) - Error (11)
- FTP (11)
- Generic (11)
- HTTP (11)
- HTTPS (11)
- InvalidComponentError (11)
- InvalidURIError (11)
- LDAP (11)
- LDAPS (11)
- MailTo (11)
- UNSAFE (11)
- URI (22)
- absolute (11)
- absolute? (11)
- attributes (11)
- attributes= (11)
- build (110)
- build2 (22)
- coerce (11)
- component (22)
- decode (7)
-
decode
_ www _ form (11) -
decode
_ www _ form _ component (11) -
default
_ port (22) - dn (11)
- dn= (11)
- encode (7)
-
encode
_ www _ form (11) -
encode
_ www _ form _ component (11) - escape (7)
- extensions (11)
- extensions= (11)
- extract (44)
- filter (11)
- filter= (11)
-
find
_ proxy (11) - fragment (11)
- fragment= (11)
- headers (11)
- headers= (11)
- hierarchical? (11)
- host (11)
- host= (11)
- hostname (11)
- hostname= (11)
- join (11)
- merge (11)
- merge! (11)
- new (55)
- new2 (11)
- normalize (11)
- normalize! (11)
- opaque (11)
- opaque= (11)
- parse (11)
- parser (11)
- password (11)
- password= (11)
- path (11)
- path= (11)
- port (11)
- port= (11)
- query (11)
- query= (11)
- regexp (22)
- registry (11)
- registry= (11)
- relative? (11)
-
request
_ uri (11) -
route
_ from (11) -
route
_ to (11) - scheme (11)
- scheme= (11)
- scope (11)
- scope= (11)
- select (11)
- split (11)
- to (11)
- to= (11)
-
to
_ mailtext (11) -
to
_ rfc822text (11) -
to
_ s (11) - typecode (11)
- typecode= (11)
- unescape (7)
-
use
_ registry (11) - user (11)
- user= (11)
- userinfo (11)
- userinfo= (11)
検索結果
先頭5件
-
URI
:: Generic # port -> String | nil (2.0) -
自身の port を文字列で返します。設定されていない場合は nil を返します。
自身の port を文字列で返します。設定されていない場合は nil を返します。 -
URI
:: Generic # port=(s) (2.0) -
自身の port を設定します。
...自身の port を設定します。
@param s 自身の port を表す文字列か整数を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError port と registry を同時に設定した場合に発生します。... -
URI
:: Generic # query -> String | nil (2.0) -
自身の query を文字列で返します。設定されていない場合は nil を返します。
...自身の query を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/?hoge').query #=> "hoge"... -
URI
:: Generic # query=(s) (2.0) -
自身の query を設定します。
...自身の query を設定します。
@param s 自身の query を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError opaque と query を同時に設定した場合に発生します。... -
URI
:: Generic # registry -> String | nil (2.0) -
自身の registry を文字列で返します。設定されていない場合は nil を返します。
自身の registry を文字列で返します。設定されていない場合は nil を返します。 -
URI
:: Generic # registry=(s) (2.0) -
自身の registry を設定します。
...自身の registry を設定します。
@param s 自身の registry を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError server 部と registry を同時に設定した場合に発生します。... -
URI
:: Generic # relative? -> bool (2.0) -
自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').relative? #=> false
p URI.parse('./').relative? #=> true... -
URI
:: Generic # route _ from(src) -> URI :: Generic (2.0) -
与えられた URI を表す src からの相対パスを返します。
...えられた URI を表す src からの相対パスを返します。
@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。
例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x... -
URI
:: Generic # route _ to(dst) -> URI :: Generic (2.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 # scheme -> String | nil (2.0) -
自身の scheme を文字列で返します。設定されていない場合は nil を返します。
自身の scheme を文字列で返します。設定されていない場合は nil を返します。