Created
August 18, 2011 14:59
-
-
Save bklang/1154234 to your computer and use it in GitHub Desktop.
Example dynamically generated menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
menu 'my_menu_prompt', :timeout => 5.seconds, :tries => 2 do |link| | |
options.each do |digit, context| | |
link.send context.to_sym, digit | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment