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