diff options
author | Frederico <fred.rbittencourt@gmail.com> | 2016-07-11 00:40:45 -0300 |
---|---|---|
committer | Frederico <fred.rbittencourt@gmail.com> | 2016-07-11 00:40:45 -0300 |
commit | d789f437659d8942f272f92b8374c767963db4c4 (patch) | |
tree | ba1225990853739981ecfd82970eb802cd3b89a5 /examples/menus.rb | |
parent | 855cc18733a9953ea028456b14186c5a29fa70e0 (diff) | |
download | highline-d789f437659d8942f272f92b8374c767963db4c4.tar.gz |
show default option for menus
Diffstat (limited to 'examples/menus.rb')
-rw-r--r-- | examples/menus.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/menus.rb b/examples/menus.rb index ffa63bf..c925c07 100644 --- a/examples/menus.rb +++ b/examples/menus.rb @@ -26,6 +26,9 @@ choose do |menu| menu.choice :ruby do say("Good choice!") end menu.choices(:python, :perl) do say("Not from around here, are you?") end + + menu.default = :ruby + end say("\nThis is letter indexing...") |