11件ヒット
[1-11件を表示]
(0.021秒)
別のキーワード
ライブラリ
- ビルトイン (11)
検索結果
-
TracePoint
# lineno -> Integer (18121.0) -
発生したイベントの行番号を返します。
...発生したイベントの行番号を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call, :return) do |tp|
tp.lineno
end
trace.enable
foo 1
# => 1
# 3
//}...