るりまサーチ

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

別のキーワード

  1. format spec
  2. format spec=
  3. installer spec
  4. oldformat spec
  5. oldformat spec=

ライブラリ

検索結果

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