Class | Gem::StreamUI |
In: |
lib/rubygems/user_interaction.rb
|
Parent: | Object |
Gem::StreamUI implements a simple stream based user interface.
errs | [R] | |
ins | [R] | |
outs | [R] |
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 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].