るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.058秒)

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. module >
  4. integer >
  5. complex >

ライブラリ

クラス

キーワード

検索結果

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

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

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

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

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

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

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

URI::Generic#select(*components) -> [String] (107.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"]...