るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.029秒)
トップページ > クエリ:require[x] > モジュール:WEBrick::Utils[x]

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

ライブラリ

キーワード

検索結果

WEBrick::Utils.#getservername -> String (7.0)

プロセスが動いているマシンのホスト名を文字列で返します。

...プロセスが動いているマシンのホスト名を文字列で返します。

require
'webrick'
p WEBrick::Utils.getservername #=> "localhost"...

WEBrick::Utils.#random_string(len) -> String (7.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"...