backtrace(exception)
Prints a formatted backtrace to the errors stream if backtraces are enabled.
# File lib/rubygems/user_interaction.rb, line 224 def backtrace exception return unless Gem.configuration.backtrace @errs.puts "\t#{exception.backtrace.join "\n\t"}" end