Ruby 4.1 リファレンスマニュアル

singleton method Exception.to_tty?

to_tty? -> boolRuby 2.5.0 から[permalink][rdoc][edit]

$stderr が変更されておらず、$stderr.tty? が真の場合は true を返します。

[SEE_ALSO] Exception#full_message