るりまサーチ

最速Rubyリファレンスマニュアル検索!
234件ヒット [201-234件を表示] (0.010秒)
トップページ > クエリ:<[x] > 種類:特異メソッド[x]

別のキーワード

  1. _builtin <
  2. bigdecimal <
  3. float <
  4. module <
  5. integer <

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< < 1 2 3 >>

Thread.report_on_exception -> bool (7.0)

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

...{ 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 `times'

これによってスレッドのエ...

Thread.report_on_exception=(newstate) (7.0)

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

...{ 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 `times'

これによってスレッドのエ...

Time.parse(date, now = Time.now) -> Time (7.0)

...

ブロック付きで呼ばれた場合、dateの年はブロックによって変換されます。

require 'time'
Time.parse(...) {|y| y < 100 ? (y >= 69 ? y + 1900 : y + 2000) : y}

与えられた時刻に上位の要素がなかったり壊れていた場合、nowの
該当要素が...

Time.parse(date, now = Time.now) {|year| year } -> Time (7.0)

...

ブロック付きで呼ばれた場合、dateの年はブロックによって変換されます。

require 'time'
Time.parse(...) {|y| y < 100 ? (y >= 69 ? y + 1900 : y + 2000) : y}

与えられた時刻に上位の要素がなかったり壊れていた場合、nowの
該当要素が...
<< < 1 2 3 >>