summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFrederico <fred.rbittencourt@gmail.com>2016-07-11 00:40:45 -0300
committerFrederico <fred.rbittencourt@gmail.com>2016-07-11 00:40:45 -0300
commitd789f437659d8942f272f92b8374c767963db4c4 (patch)
treeba1225990853739981ecfd82970eb802cd3b89a5 /examples
parent855cc18733a9953ea028456b14186c5a29fa70e0 (diff)
downloadhighline-d789f437659d8942f272f92b8374c767963db4c4.tar.gz
show default option for menus
Diffstat (limited to 'examples')
-rw-r--r--examples/menus.rb3
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...")