From 729bafdf3a9dfd87790c61a6718792d9f4816e60 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 18 Feb 2006 15:38:56 +0000 Subject: * lib/tracer.rb (Tracer::Tracer.add_filter): turn on tracer mode only when caller() level size is one. [ruby-core:07389] * lib/rdoc/parsers/parse_rb.rb: need not to require "tracer". [ruby-core:07389] * sample/rtags.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tracer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tracer.rb') diff --git a/lib/tracer.rb b/lib/tracer.rb index 893a9d5827..71aa49c306 100644 --- a/lib/tracer.rb +++ b/lib/tracer.rb @@ -162,6 +162,6 @@ if $0 == __FILE__ ARGV.shift Tracer.on require $0 -else +elsif caller(0).size == 1 Tracer.on end -- cgit v1.2.3