Permalink
Browse files

- Sometimes 'klass.name' is nil/empty/whatever

  • Loading branch information...
jordansissel committed Nov 15, 2010
1 parent 0e16134 commit 966e7644a21924995f64ba9db54a3ce8af693960
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/minstrel.rb
View
@@ -151,7 +151,7 @@ def self.instrumented_require(*args)
ENV["RUBY_INSTRUMENT"].split(",").each do |klassname|
instrument = Minstrel::Instrument.new
instrument.wrap_classname(klassname) do |point, klass, method, *args|
- puts "#{point} #{klass.name}##{method}(#{args.inspect})"
+ puts "#{point} #{klass.name || klassname}##{method}(#{args.inspect})"
end
end
end

0 comments on commit 966e764

Please sign in to comment.