るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.012秒)

別のキーワード

  1. utils getservername
  2. webrick/utils getservername
  3. utils set_close_on_exec
  4. utils su
  5. utils random_string

ライブラリ

モジュール

検索結果

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

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

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

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