Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::DefaultUserInteraction.ui=
ui=(new_ui)
lib/rubygems/user_interaction.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/user_interaction.rb, line 36
def self.ui=(new_ui)
@ui = new_ui
end
Set the default UI. If the default UI is never explicitly set, a simple console based UserInteraction will be used automatically.