るりまサーチ

最速Rubyリファレンスマニュアル検索!
458件ヒット [101-200件を表示] (0.081秒)
トップページ > クエリ:a[x] > クエリ:Report[x]

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

検索結果

<< < 1 2 3 4 ... > >>

Thread#report_on_exception -> bool (9162.0)

真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...時の Thread.report_on_exception です。

@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。

//emlist[例][ruby]{
a
= Thread.new{ Thread.stop; raise }
a
.report_on_exception = true
a
.report_on_exceptio...
...> true
a
.run
# => #<Thread:0x00007fc3f48c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }...
...b.report_on_exception = false
b.run # => #<Thread:0x00007fc3f48aefc0@(irb):4 dead>
//}

@see Thread.report_on_exception...

Thread.report_on_exception -> bool (9120.0)

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...デフォルトは false です。

Thread.new { 1.times { raise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:...
...了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレポートを無効化しても
安全です。しか...
...なかったりするかもしれません。

スレッドごとに設定する方法は Thread#report_on_exception= を参照してください。

@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。...
...ォルトは true です。

Thread.new { 1.times { raise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `tim...

Gem::StreamUI::SilentProgressReporter#updated(message) -> nil (9100.0)

何もしません。

...何もしません。

@param message 指定しても意味がありません。...

Gem::StreamUI::SimpleProgressReporter#updated(message) -> nil (9100.0)

ドットを表示します。

...ドットを表示します。

@param message 指定しても意味がありません。...

Gem::StreamUI::VerboseProgressReporter#updated(message) -> nil (9100.0)

現在の Gem::StreamUI::VerboseProgressReporter#count と全体の数とメッセージを表示します。

...現在の Gem::StreamUI::VerboseProgressReporter#count と全体の数とメッセージを表示します。

@param message 表示するメッセージを指定します。...

絞り込み条件を変える

Gem::StreamUI::SilentProgressReporter (9000.0)

何もしない進捗報告のクラスです。

何もしない進捗報告のクラスです。

Gem::StreamUI::SimpleProgressReporter (9000.0)

シンプルな表示を行う進捗報告のクラスです。

シンプルな表示を行う進捗報告のクラスです。

Gem::StreamUI::VerboseProgressReporter (9000.0)

現在の進捗に関するメッセージを表示する進捗報告のクラスです。

現在の進捗に関するメッセージを表示する進捗報告のクラスです。

Benchmark::Report.new(width = 0, fmtstr = nil) -> Benchmark::Report (6217.0)

Benchmark::Report のインスタンスを初期化して返します。

...Benchmark::Report のインスタンスを初期化して返します。

通常このメソッドがユーザーによって直接呼び出されることはありません。

@param width ラベルの幅
@param fmtstr フォーマット文字列...
<< < 1 2 3 4 ... > >>