るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. string []=
  2. string slice!
  3. string slice
  4. string []
  5. string gsub!

ライブラリ

クラス

キーワード

検索結果

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

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

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

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

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

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

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

URI::Generic#select(*components) -> [String] (325.0)

指定された components に対応する構成要素を文字列の配列として返します。

指定された 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"]