diff options
Diffstat (limited to 'examples/menus.rb')
-rw-r--r-- | examples/menus.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/menus.rb b/examples/menus.rb index 5941f17..92cfc51 100644 --- a/examples/menus.rb +++ b/examples/menus.rb @@ -24,7 +24,7 @@ say("\nThis is the new mode (default)...") choose do |menu| menu.prompt = "Please choose your favorite programming language? " - menu.choice :ruby do say("Good choice!") end + menu.choice(:ruby) { say("Good choice!") } menu.choices(:python, :perl) { say("Not from around here, are you?") } menu.default = :ruby @@ -37,7 +37,7 @@ choose do |menu| menu.prompt = "Please choose your favorite programming language? " - menu.choice :ruby do say("Good choice!") end + menu.choice(:ruby) { say("Good choice!") } menu.choices(:python, :perl) { say("Not from around here, are you?") } end @@ -48,7 +48,7 @@ choose do |menu| menu.header = "Languages" menu.prompt = "Favorite? " - menu.choice :ruby do say("Good choice!") end + menu.choice(:ruby) { say("Good choice!") } menu.choices(:python, :perl) { say("Not from around here, are you?") } end |