クラス
-
URI
:: FTP (11) -
URI
:: Generic (176) -
URI
:: HTTP (11) -
URI
:: LDAP (55) -
URI
:: MailTo (44)
キーワード
- attributes (11)
- dn (11)
- extensions (11)
- filter (11)
- fragment (11)
- headers (11)
- host (11)
- hostname (11)
- normalize (11)
- normalize! (11)
- opaque (11)
- password (11)
- path (11)
- port (11)
- query (11)
- registry (11)
-
request
_ uri (11) - scheme (11)
- scope (11)
- select (11)
- to (11)
-
to
_ mailtext (11) -
to
_ rfc822text (11) -
to
_ s (11) - typecode (11)
- user (11)
- userinfo (11)
検索結果
先頭5件
-
URI
:: MailTo # to _ mailtext -> String (105.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&... -
URI
:: MailTo # to _ rfc822text -> String (105.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&... -
URI
:: FTP # typecode -> String | nil (104.0) -
ファイル転送のタイプを文字列で返します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。 設定されていない場合は nil を返します。
ファイル転送のタイプを文字列で返します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。
設定されていない場合は nil を返します。 -
URI
:: Generic # fragment -> String | nil (104.0) -
自身の fragment を文字列で返します。設定されていない場合は nil を返します。
...自身の fragment を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
u = URI.parse('http://example.com/#frgmt')
p u.fragment #=> "frgmt"... -
URI
:: Generic # host -> String | nil (104.0) -
自身の host を文字列で返します。設定されていない場合は nil を返します。
...自身の host を文字列で返します。設定されていない場合は nil を返します。
@see URI::Generic#hostname... -
URI
:: Generic # hostname -> String | nil (104.0) -
自身の hostname を文字列で返します。また、URI::Generic#host が設 定されていない場合は nil を返します。
...URI::Generic#host が設
定されていない場合は nil を返します。
このメソッドは URI::Generic#host に IPv6 アドレスが設定されていた
場合はブラケットを削除した文字列を返しますがそれ以外は同じ文字列を返し
ます。
require 'uri'......u = URI("http://[::1]/bar")
p u.hostname # => "::1"
p u.host # => "[::1]"... -
URI
:: Generic # normalize! -> String | nil (104.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
...
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s... -
URI
:: Generic # opaque -> String | nil (104.0) -
自身の opaque を文字列で返します。設定されていない場合は nil を返します。
...列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/').opaque #=> nil
p URI.parse('mailto:nospam@localhost').opaque #=> "nospam@localhost"
p URI.parse('urn:ietf:rfc:1149').opaque #=> "ietf:rfc:1149"... -
URI
:: Generic # password -> String | nil (104.0) -
自身の password を文字列で返します。設定されていない場合は nil を返します。
自身の password を文字列で返します。設定されていない場合は nil を返します。 -
URI
:: Generic # path -> String | nil (104.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')....