11件ヒット
[1-11件を表示]
(0.065秒)
別のキーワード
クラス
-
URI
:: Generic (11)
検索結果
-
URI
:: Generic # userinfo=(s) (21156.0) -
自身の userinfo を設定します。
..."username" か "username:password" という形式の文字列、あるいは
[username, password] という形式の文字列の配列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError userinfo と registr......equire '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'...