Ruby 3.1.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > TracePointクラス > enabled?

instance method TracePoint#enabled?

enabled? -> bool[permalink][rdoc]

self のトレースが有効な場合に true を、そうでない場合に false を返します。

[SEE_ALSO] TracePoint#enable, TracePoint#disable