るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.259秒)
トップページ > クエリ:i[x] > クエリ:-[x] > 種類:インスタンスメソッド[x] > クエリ:t[x] > クエリ:event[x] > クラス:TracePoint[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

検索結果

TracePoint#event -> Symbol (27309.0)

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

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

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

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