method

backtrace

ruby latest stable - Class: Gem::StreamUI
backtrace(exception)
public

Prints a formatted backtrace to the errors stream if backtraces are enabled.