Class: Gem::ConsoleUI
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
StreamUI
|
|
Instance Chain:
self,
StreamUI
|
|
Inherits: |
Gem::StreamUI
|
Defined in: | lib/rubygems/user_interaction.rb |
Overview
Subclass of StreamUI that instantiates the user interaction using STDIN, STDOUT, and STDERR.
Class Method Summary
-
.new ⇒ ConsoleUI
constructor
The Console UI has no arguments as it defaults to reading input from stdin, output to stdout and warnings or errors to stderr.
StreamUI - Inherited
Instance Attribute Summary
StreamUI - Inherited
Instance Method Summary
StreamUI - Inherited
#_gets_noecho | See additional method definition at line 315. |
#alert | Display an informational alert. |
#alert_error | Display an error message in a location expected to get error messages. |
#alert_warning | Display a warning on stderr. |
#ask | Ask a question. |
#ask_for_password | Ask for a password. |
#ask_yes_no | Ask a question. |
#backtrace | Prints a formatted backtrace to the errors stream if backtraces are enabled. |
#choose_from_list | Choose from a list of options. |
#close, | |
#debug | Display a debug message on the same location as error messages. |
#download_reporter | Return a download reporter object chosen from the current verbosity. |
#progress_reporter | Return a progress reporter object chosen from the current verbosity. |
#say | Display a statement. |
#terminate_interaction | Terminate the application with exit code |
Constructor Details
.new ⇒ ConsoleUI
The Console UI has no arguments as it defaults to reading input from stdin, output to stdout and warnings or errors to stderr.
# File 'lib/rubygems/user_interaction.rb', line 670
def initialize super STDIN, STDOUT, STDERR, true end