るりまサーチ

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

別のキーワード

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

ライブラリ

検索結果

TracePoint#inspect -> String (30132.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
//}...