Class: Gem::ConsoleUI

Inherits:
StreamUI show all
Defined in:
lib/rubygems/user_interaction.rb

Overview

Subclass of StreamUI that instantiates the user interaction using STDIN, STDOUT, and STDERR.

Instance Attribute Summary

Attributes inherited from StreamUI

#errs, #ins, #outs

Instance Method Summary collapse

Methods inherited from StreamUI

#_gets_noecho, #alert, #alert_error, #alert_warning, #ask, #ask_for_password, #ask_yes_no, #backtrace, #choose_from_list, #close, #download_reporter, #progress_reporter, #require_io_console, #say, #terminate_interaction, #tty?

Methods included from Deprecate

#deprecate, next_rubygems_major_version, rubygems_deprecate, rubygems_deprecate_command, skip, skip=, skip_during

Constructor Details

#initializeConsoleUI

The Console UI has no arguments as it defaults to reading input from stdin, output to stdout and warnings or errors to stderr.



606
607
608
# File 'lib/rubygems/user_interaction.rb', line 606

def initialize
  super STDIN, STDOUT, STDERR, true
end