Method: HighLine::Menu#select_by
- Defined in:
- lib/highline/menu.rb
#select_by ⇒ Object
The select_by attribute controls how the user is allowed to pick a menu item. The available choices are:
:index-
The user is allowed to type the numerical or alphabetical index for their selection.
:index_or_name-
Allows both methods from the
:indexoption and the:nameoption. :name-
Menu items are selected by typing a portion of the item name that will be auto-completed.
111 112 113 |
# File 'lib/highline/menu.rb', line 111 def select_by @select_by end |