るりまサーチ

最速Rubyリファレンスマニュアル検索!
132件ヒット [1-100件を表示] (0.017秒)
トップページ > クエリ:generic[x] > クエリ:userinfo[x]

別のキーワード

  1. generic component
  2. generic default_port
  3. generic build
  4. generic build2

ライブラリ

クラス

キーワード

検索結果

<< 1 2 > >>

URI::Generic#userinfo -> String | nil (21117.0)

自身の userinfo を "username:password" という形式の文字列で返します。 設定されていない場合は nil を返します。

...自身の userinfo を "username:password" という形式の文字列で返します。
設定されていない場合は nil を返します。...

URI::Generic#userinfo=(s) (9147.0)

自身の userinfo を設定します。

...自身の userinfo を設定します。

@param s 自身の userinfo を "username" か "username:password" という形式の文字列、あるいは
[username, password] という形式の文字列の配列で指定します。

@raise URI::InvalidComponentError 不正な引数 s に対...
...:InvalidURIError userinfo と registry を同時に設定した場合に発生します。

例:
require 'uri'
u = URI.parse('http://example.com/')
u.userinfo = 'hoge-san:jfae82kj'
p u.to_s #=> "http://hoge-san:jfae82kj@example.com/"

u.userinfo = 'oreore'
p...
...u.to_s #=> "http://oreore:jfae82kj@example.com/"

u.userinfo = ['you', 'akakfd']
p u.to_s #=> "http://you:akakfd@example.com/"...

URI::Generic.new(scheme, userinfo, host, port, registry, path, opaque, query, fragment, parser = URI::DEFAULT_PARSER, arg_check = false) -> URI::Generic (3224.0)

各引数を成分とする URI::Generic オブジェクトを生成して返します。

...各引数を成分とする URI::Generic オブジェクトを生成して返します。

@param scheme 構成要素 scheme を表す文字列を与えます。

@param userinfo 構成要素を表す文字列を与えます。

@param host 構成要素を表す文字列を与えます。

@param p...

URI::Generic.build(ary) -> URI::Generic (3130.0)

引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。

...引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。

@param ary 構成要素を表す配列を与えます。要素は以下の順です。
//emlist{
[scheme, userinfo, host, port, registry, path, opaque, query, fragment]
//}

@param hash 構...
...のキーはシンボルは以下のいずれかです。
ハッシュの値は文字列で与えます。
//emlist{
:scheme ,:userinfo, :host, :port, :registry, :path, :opaque, :query, :fragment
//}

@raise URI::InvalidComponentError 各要素が適合しない場合に発生し...

URI::Generic.build(hash) -> URI::Generic (3130.0)

引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。

...引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。

@param ary 構成要素を表す配列を与えます。要素は以下の順です。
//emlist{
[scheme, userinfo, host, port, registry, path, opaque, query, fragment]
//}

@param hash 構...
...のキーはシンボルは以下のいずれかです。
ハッシュの値は文字列で与えます。
//emlist{
:scheme ,:userinfo, :host, :port, :registry, :path, :opaque, :query, :fragment
//}

@raise URI::InvalidComponentError 各要素が適合しない場合に発生し...

絞り込み条件を変える

URI::Generic.build2(ary) -> URI::Generic (3130.0)

URI::Generic.build と同じですが、例外 URI::InvalidComponentError が発生した場合に、引数の各要素を URI.escape して再度 build を試み ます。

...URI::Generic.build と同じですが、例外 URI::InvalidComponentError
が発生した場合に、引数の各要素を URI.escape して再度 build を試み
ます。

@param ary 構成要素を表す文字列の配列を与えます。要素は以下の順です。
//emlist{
[scheme, u...
...}

@param hash 構成要素を表すハッシュを与えます。ハッシュのキーはシンボルは以下
のいずれかです。 ハッシュの値は文字列で与えます。
//emlist{
:scheme, :userinfo, :host, :port, :registry, :path, :opaque, :query, :fragment
//}...

URI::Generic.build2(hash) -> URI::Generic (3130.0)

URI::Generic.build と同じですが、例外 URI::InvalidComponentError が発生した場合に、引数の各要素を URI.escape して再度 build を試み ます。

...URI::Generic.build と同じですが、例外 URI::InvalidComponentError
が発生した場合に、引数の各要素を URI.escape して再度 build を試み
ます。

@param ary 構成要素を表す文字列の配列を与えます。要素は以下の順です。
//emlist{
[scheme, u...
...}

@param hash 構成要素を表すハッシュを与えます。ハッシュのキーはシンボルは以下
のいずれかです。 ハッシュの値は文字列で与えます。
//emlist{
:scheme, :userinfo, :host, :port, :registry, :path, :opaque, :query, :fragment
//}...

URI::Generic#user -> String | nil (3022.0)

自身の userinfo を文字列で返します。

...自身の userinfo を文字列で返します。

userinfo
が「username:password」の形式である場合は、username 部を返します。
設定されていない場合は nil を返します。...

URI::Generic.component -> [Symbol] (3012.0)

URI の構成要素を表すシンボルの配列を返します。

...URI の構成要素を表すシンボルの配列を返します。

require 'uri'
p URI::Generic.component
p URI::MailTo.component

# => [:scheme, :userinfo, :host, :port, :registry, :path, :opaque, :query, :fragment]
# => [:scheme, :to, :headers]...
<< 1 2 > >>