Class Gem::StreamUI
In: lib/rubygems/user_interaction.rb
Parent: Object

Gem::StreamUI implements a simple stream based user interface.

Methods

Classes and Modules

Class Gem::StreamUI::SilentProgressReporter
Class Gem::StreamUI::SimpleProgressReporter
Class Gem::StreamUI::VerboseProgressReporter

Attributes

errs  [R] 
ins  [R] 
outs  [R] 

Public Class methods

Public Instance methods

Display an informational alert. Will ask question if it is not nil.

Display an error message in a location expected to get error messages. Will ask question if it is not nil.

Display a warning in a location expected to get error messages. Will ask question if it is not nil.

Ask a question. Returns an answer if connected to a tty, nil otherwise.

Ask a question. Returns a true for yes, false for no. If not connected to a tty, raises an exception if default is nil, otherwise returns default.

Choose from a list of options. question is a prompt displayed above the list. list is a list of option strings. Returns the pair [option_name, option_index].

Display a debug message on the same location as error messages.

Return a progress reporter object chosen from the current verbosity.

Display a statement.

Terminate the application with exit code status, running any exit handlers that might have been defined.

[Validate]