Skip to content
instance method

Gem::StreamUI#choose_from_list

choose_from_list(question, list)

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].

See also #backtrace #close #ask_yes_no #download_reporter also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0