14件ヒット
[1-14件を表示]
(0.256秒)
種類
- 特異メソッド (7)
- インスタンスメソッド (7)
クラス
- Exception (14)
検索結果
-
Exception
# full _ message(highlight: true , order: :bottom) -> String (26121.0) -
例外の整形された文字列を返します。
...escue => e
p e.full_message # => "\e[1mTraceback \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
$stderr = $stdout
p e.full_message # => "test.rb:2:in `<main>': test (RuntimeError)\n"
$stderr = STDERR
p e.full_message # => "\e[1mTr... -
Exception
. to _ tty? -> bool (8008.0) -
$stderr が変更されておらず、$stderr.tty? が真の場合は true を返します。
...$stderr が変更されておらず、$stderr.tty? が真の場合は true を返します。
[注意] 2.5.1 で追加されたメソッドです。
@see Exception#full_message......$stderr が変更されておらず、$stderr.tty? が真の場合は true を返します。
@see Exception#full_message...