Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::StreamUI#backtrace
backtrace(exception)
lib/rubygems/user_interaction.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/user_interaction.rb, line 214
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.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0