summaryrefslogtreecommitdiff
path: root/lib/tracer.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-21 07:08:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-21 07:08:02 +0000
commit4ec8dc6d61986fa8d778ebe43876d15674038c74 (patch)
tree1435717d8305f9df46049e1a6c9de265fe7a4da4 /lib/tracer.rb
parent9dd0d271568c6bf37987698c229d162b4d664281 (diff)
* lib/tracer.rb: toplevel caller exists now. [ruby-core:24454]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tracer.rb')
-rw-r--r--lib/tracer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tracer.rb b/lib/tracer.rb
index 8e6586d..5968971 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -161,6 +161,6 @@ if $0 == __FILE__
ARGV.shift
Tracer.on
require $0
-elsif caller(0).size == 1
+elsif caller.size == 1
Tracer.on
end