2件ヒット
[1-2件を表示]
(0.196秒)
種類
- 特異メソッド (1)
- インスタンスメソッド (1)
検索結果
-
TracePoint
# path -> String (42310.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
//}... -
TracePoint
. stat -> object (42310.0) -
TracePoint の内部情報を返します。
...TracePoint の内部情報を返します。
返り値の内容は実装依存です。
将来変更される可能性があります。
このメソッドは TracePoint 自身のデバッグ用です。...