Created
June 24, 2016 08:23
-
-
Save e-jambon/cd9b663c8012fea68b880b4e74e12d24 to your computer and use it in GitHub Desktop.
Revisions
-
e-jambon created this gist
Jun 24, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ require 'tty' require 'tty-prompt' prompt = TTY::Prompt.new answer = prompt.select("my question") do |item| item.choice 'One', 'Pika' item.choice "Two", 'Boo' end puts "My answer was : #{answer}"