るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.089秒)
トップページ > クエリ:String#tr[x] > クエリ:byteindex[x] > クエリ:*[x] > ライブラリ:webrick/utils[x]

別のキーワード

  1. << rexml::attribute#name
  2. add rexml::attribute#name
  3. handle_interrupt thread#raise
  4. inspect? irb::context#inspect_mode
  5. service drb::extserv#stop_service

モジュール

キーワード

検索結果

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

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

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

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