1件ヒット
[1-1件を表示]
(0.084秒)
ライブラリ
- ビルトイン (1)
検索結果
-
TracePoint
# binding -> Binding (18625.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...発生したイベントによって生成された Binding オブジェクトを返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}...