2件ヒット
[1-2件を表示]
(0.062秒)
ライブラリ
-
webrick
/ utils (2)
キーワード
- getservername (1)
-
random
_ string (1)
検索結果
-
WEBrick
:: Utils . # random _ string(len) -> String (37228.0) -
A-Z, a-z, 0-9 からなる長さ len のランダムな文字列を返します。
...A-Z, a-z, 0-9 からなる長さ len のランダムな文字列を返します。
@param len 得たい文字列の長さを整数で指定します。単位はバイトです。
require 'webrick'
p WEBrick::Utils.random_string(10) #=> "xF0jwU4RJd"... -
WEBrick
:: Utils . # getservername -> String (607.0) -
プロセスが動いているマシンのホスト名を文字列で返します。
...プロセスが動いているマシンのホスト名を文字列で返します。
require 'webrick'
p WEBrick::Utils.getservername #=> "localhost"...