Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::ConsoleUI.new
new
lib/rubygems/user_interaction.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/user_interaction.rb, line 602
def initialize
super $stdin, $stdout, $stderr, true
end
The Console UI has no arguments as it defaults to reading input from stdin, output to stdout and warnings or errors to stderr.