るりまサーチ (Ruby 2.7.0)

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

別のキーワード

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

ライブラリ

モジュール

検索結果

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

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

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

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