3件ヒット
[1-3件を表示]
(0.061秒)
クラス
-
URI
:: Generic (3)
検索結果
先頭3件
-
URI
:: Generic # userinfo -> String | nil (54661.0) -
自身の userinfo を "username:password" という形式の文字列で返します。 設定されていない場合は nil を返します。
自身の userinfo を "username:password" という形式の文字列で返します。
設定されていない場合は nil を返します。 -
URI
:: Generic # select(*components) -> [String] (18328.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 # user -> String | nil (376.0) -
自身の userinfo を文字列で返します。
自身の userinfo を文字列で返します。
userinfo が「username:password」の形式である場合は、username 部を返します。
設定されていない場合は nil を返します。