324件ヒット
[101-200件を表示]
(0.041秒)
クラス
-
URI
:: FTP (12) -
URI
:: Generic (192) -
URI
:: HTTP (12) -
URI
:: LDAP (60) -
URI
:: MailTo (48)
キーワード
- attributes (12)
- dn (12)
- extensions (12)
- filter (12)
- fragment (12)
- headers (12)
- host (12)
- hostname (12)
- normalize (12)
- normalize! (12)
- opaque (12)
- password (12)
- path (12)
- port (12)
- query (12)
- registry (12)
-
request
_ uri (12) - scheme (12)
- scope (12)
- select (12)
- to (12)
-
to
_ mailtext (12) -
to
_ rfc822text (12) -
to
_ s (12) - typecode (12)
- user (12)
- userinfo (12)
検索結果
先頭5件
-
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').... -
URI
:: Generic # port -> String | nil (104.0) -
自身の port を文字列で返します。設定されていない場合は nil を返します。
自身の port を文字列で返します。設定されていない場合は nil を返します。 -
URI
:: Generic # query -> String | nil (104.0) -
自身の query を文字列で返します。設定されていない場合は nil を返します。
...自身の query を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/?hoge').query #=> "hoge"... -
URI
:: Generic # registry -> String | nil (104.0) -
自身の registry を文字列で返します。設定されていない場合は nil を返します。
自身の registry を文字列で返します。設定されていない場合は nil を返します。 -
URI
:: Generic # scheme -> String | nil (104.0) -
自身の scheme を文字列で返します。設定されていない場合は nil を返します。
自身の scheme を文字列で返します。設定されていない場合は nil を返します。 -
URI
:: Generic # select(*components) -> [String] (104.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"]... -
URI
:: Generic # to _ s -> String (104.0) -
自身が表す URI を文字列として返します。
...自身が表す URI を文字列として返します。
例:
require 'uri'
p URI.parse('http://example.com/').to_s #=> "http://example.com/"... -
URI
:: Generic # user -> String | nil (104.0) -
自身の userinfo を文字列で返します。
自身の userinfo を文字列で返します。
userinfo が「username:password」の形式である場合は、username 部を返します。
設定されていない場合は nil を返します。