るりまサーチ

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

別のキーワード

  1. benchmark format
  2. logger datetime_format=
  3. logger datetime_format
  4. tms format
  5. prettyprint format

ライブラリ

クラス

モジュール

検索結果

REXML::Formatters::Pretty#width=(w) (21100.0)

出力のページ幅を設定します。

...出力のページ幅を設定します。

@param w ページ幅の設定値
@see REXML::Formatters::Pretty#width...

Benchmark.#benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) {|rep| ...} -> [Benchmark::Tms] (13.0)

Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。

...定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定します。

=== フォ...
...total:", ">avg:") do |x| ... end
# と同じ
Benchmark.benchmark(" "*7 + Benchmark::CAPTION,
7,
Benchmark::FORMAT,
">total:",
">avg:") do |x|

tf = x.report("for:") { for i in 1..n; a = "1"; end }
tt = x.report("ti...