420件ヒット
[1-100件を表示]
(0.168秒)
クラス
-
URI
:: FTP (12) -
URI
:: Generic (276) -
URI
:: HTTP (12) -
URI
:: LDAP (60) -
URI
:: MailTo (60)
キーワード
- absolute (12)
- absolute? (12)
- attributes (12)
- coerce (12)
- component (12)
-
default
_ port (12) - dn (12)
- extensions (12)
- filter (12)
- fragment (12)
- headers (12)
- host (12)
- hostname (12)
- normalize! (12)
- opaque (12)
- password (12)
- path (12)
- port (12)
- query (12)
- registry (12)
- relative? (12)
-
request
_ uri (12) -
route
_ from (12) -
route
_ to (12) - scheme (12)
- scope (12)
- select (12)
- to (12)
- to= (12)
-
to
_ mailtext (12) -
to
_ rfc822text (12) -
to
_ s (12) - typecode (12)
- user (12)
- userinfo (12)
検索結果
先頭5件
-
URI
:: Generic # route _ from(src) -> URI :: Generic (18409.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:0x20100256 URL......:foo/bar.html>... -
URI
:: Generic # registry -> String | nil (15403.0) -
自身の registry を文字列で返します。設定されていない場合は nil を返します。
...自身の registry を文字列で返します。設定されていない場合は nil を返します。... -
URI
:: LDAP # attributes -> String (15403.0) -
自身の Attribute を文字列で返します。
...自身の Attribute を文字列で返します。... -
URI
:: MailTo # to _ rfc822text -> String (15339.0) -
URI オブジェクトからメールテキスト文字列を生成します。
...
URI オブジェクトからメールテキスト文字列を生成します。
例:
require 'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext
=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&......cc=myaddr>
To: ruby-list@ruby-lang.org
Subject: subscribe
Cc: myaddr... -
URI
:: Generic # default _ port -> Integer | nil (15303.0) -
self.class.default_port を返します。
...self.class.default_port を返します。
@see URI::Generic.default_port... -
URI
:: Generic # fragment -> String | nil (15303.0) -
自身の fragment を文字列で返します。設定されていない場合は nil を返します。
...自身の fragment を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
u = URI.parse('http://example.com/#frgmt')
p u.fragment #=> "frgmt"... -
URI
:: Generic # port -> String | nil (15303.0) -
自身の port を文字列で返します。設定されていない場合は nil を返します。
...自身の port を文字列で返します。設定されていない場合は nil を返します。... -
URI
:: Generic # relative? -> bool (15303.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 _ to(dst) -> URI :: Generic (15303.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>...