るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

検索結果

TracePoint#path -> String (18126.0)

イベントが発生したファイルのパスを返します。

...トが発生したファイルのパスを返します。

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

//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//}...