るりまサーチ

最速Rubyリファレンスマニュアル検索!
907件ヒット [901-907件を表示] (0.040秒)

別のキーワード

  1. argf.class each
  2. argf.class each_line
  3. argf.class lines
  4. class new
  5. argf.class gets

ライブラリ

クラス

モジュール

検索結果

<< < ... 8 9 10 >>

tracer (12.0)

実行トレース出力をとる機能を提供します。

...、動作します。
require 'tracer'

class
Hoge
def Hoge.fuga(i)
"fuga #{i}"
end
end

Tracer.add_filter {|event, file, line, id, binding, klass|
event =~ /line/ and klass.to_s =~ /hoge/i
}
Tracer.on
for i in 0..3
puts
Hoge.fuga(i) if i % 3 == 0
end
Tracer....
<< < ... 8 9 10 >>