るりまサーチ

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

別のキーワード

  1. utils getservername
  2. webrick/utils getservername
  3. getservername webrick/utils
  4. getservername webrick::utils

ライブラリ

モジュール

検索結果

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

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

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

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