るりまサーチ (Ruby 2.4.0)

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

別のキーワード

  1. tracer event_symbol
  2. etc sc_trace_event_filter
  3. ripper parser_event_table
  4. ripper scanner_event_table
  5. etc sc_trace_event_name_max

クラス

検索結果

TracePoint#event -> Symbol (54331.0)

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

発生したイベントの種類を 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
//}