るりまサーチ

最速Rubyリファレンスマニュアル検索!
103件ヒット [101-103件を表示] (0.036秒)
トップページ > クエリ:ruby[x] > 種類:インスタンスメソッド[x] > クエリ:end[x] > クエリ:call[x] > クラス:TracePoint[x]

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

キーワード

検索結果

<< < 1 2 >>

TracePoint#path -> String (26.0)

イベントが発生したファイルのパスを返します。

...トが発生したファイルのパスを返します。

@raise RuntimeError イベントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(ret)
ret
end

trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end

trace.enable
foo 1
//}...
<< < 1 2 >>