るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.085秒)

別のキーワード

  1. _builtin enable
  2. mkmf enable_config
  3. kernel enable_config
  4. tracepoint enable
  5. net/pop enable_ssl

ライブラリ

クラス

検索結果

TracePoint#event -> Symbol (18120.0)

発生したイベントの種類を Symbol で返します。

...、TracePoint.new を参照してくださ
い。

@raise RuntimeError イベントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call, :return) do |tp|
p tp.event
end
trace.enable
foo 1
# => :call
# :return
//}...