Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::StreamUI#backtrace
backtrace(exception)
lib/rubygems/user_interaction.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/user_interaction.rb, line 211
def backtrace(exception)
return unless Gem.configuration.backtrace
@errs.puts "\t#{exception.backtrace.join "\n\t"}"
end
Prints a formatted backtrace to the errors stream if backtraces are enabled.
See also
#ask_yes_no
#choose_from_list
#ask_for_password
#close
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0