516件ヒット
[1-100件を表示]
(0.040秒)
クラス
-
URI
:: FTP (12) -
URI
:: Generic (312) -
URI
:: LDAP (120) -
URI
:: MailTo (72)
キーワード
- + (12)
- == (12)
- absolute (12)
- absolute? (12)
- attributes (12)
- attributes= (12)
- component (12)
-
default
_ port (12) - dn (12)
- dn= (12)
- extensions (12)
- extensions= (12)
- filter (12)
- filter= (12)
-
find
_ proxy (12) - fragment (12)
- headers (12)
- headers= (12)
- hierarchical? (12)
- host (12)
- hostname (12)
- merge (12)
- merge! (12)
- normalize (12)
- normalize! (12)
- opaque (12)
- password (12)
- path (12)
- port (12)
- query (12)
- registry (12)
- relative? (12)
- scheme (12)
- scope (12)
- scope= (12)
- select (12)
- to (12)
- to= (12)
-
to
_ mailtext (12) -
to
_ rfc822text (12) - typecode (12)
- user (12)
- userinfo (12)
検索結果
先頭5件
-
URI
:: MailTo # to _ mailtext -> String (9103.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 # 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
:: Generic # default _ port -> Integer | nil (6103.0) -
self.class.default_port を返します。
...self.class.default_port を返します。
@see URI::Generic.default_port... -
URI
:: Generic # hierarchical? -> bool (6103.0) -
自身に path が設定されているなら true を返します。そうでない場合は false を返します。
...自身に path が設定されているなら true を返します。そうでない場合は false を返します。... -
URI
:: Generic # normalize -> URI :: Generic (6103.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 # normalize! -> String | nil (6103.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 # relative? -> bool (6103.0) -
自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').relative? #=> false
p URI.parse('./').relative? #=> true... -
URI
:: Generic # select(*components) -> [String] (6103.0) -
指定された components に対応する構成要素を文字列の配列として返します。
...字列の配列として返します。
@param components 構成要素名をシンボルで指定します。
例:
require 'uri'
uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :path)
# => ["myuser:mypass", "my.example.com", "/test.rbx"]...