るりまサーチ

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

別のキーワード

  1. string b
  2. _builtin b
  3. b string
  4. b _builtin

ライブラリ

検索結果

SystemExit#success? -> bool (101.0)

終了ステータスが正常終了を示す値ならば true を返します。

...値ならば true を返します。

大半のシステムでは、ステータス 0 が正常終了を表します。

例:

b
egin
exit true
rescue SystemExit => err
p err.success? # => true
end

b
egin
exit false
rescue SystemExit => err
p err.success? # => false
end...