44件ヒット
[1-44件を表示]
(0.035秒)
検索結果
先頭4件
-
URI
:: Generic # password -> String | nil (18220.0) -
自身の password を文字列で返します。設定されていない場合は nil を返します。
...自身の password を文字列で返します。設定されていない場合は nil を返します。... -
URI
:: Generic # userinfo -> String | nil (119.0) -
自身の userinfo を "username:password" という形式の文字列で返します。 設定されていない場合は nil を返します。
...自身の userinfo を "username:password" という形式の文字列で返します。
設定されていない場合は nil を返します。... -
URI
:: Generic # user -> String | nil (109.0) -
自身の userinfo を文字列で返します。
...自身の userinfo を文字列で返します。
userinfo が「username:password」の形式である場合は、username 部を返します。
設定されていない場合は nil を返します。... -
URI
:: Generic # userinfo=(s) (27.0) -
自身の userinfo を設定します。
..."username" か "username:password" という形式の文字列、あるいは
[username, password] という形式の文字列の配列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError userinfo と registr......y を同時に設定した場合に発生します。
例:
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 #...