るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.034秒)
トップページ > クラス:TracePoint[x] > クエリ:TracePoint[x] > クエリ:self[x] > クエリ:inspect[x]

別のキーワード

  1. tracepoint enable
  2. tracepoint disable
  3. _builtin tracepoint
  4. tracepoint inspect
  5. tracepoint lineno

ライブラリ

検索結果

TracePoint#inspect -> String (39136.0)

self の状態を人間に読みやすい文字列にして返します。

...
self
の状態を人間に読みやすい文字列にして返します。

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