Class: Rorr::Main
- Inherits:
-
Object
- Object
- Rorr::Main
- Defined in:
- lib/rorr/main.rb
Class Method Summary collapse
Class Method Details
.choose ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rorr/main.rb', line 4 def choose system 'clear' UI. while Config.topic = UI.gets case Config.topic when '1' game = DontAskMe.new break when '2' game = ReturnValue.new break when '3' game = TestPass.new break when '0', 'exit' then exit else UI.puts_with_delay 'Please enter it again'.light_blue end end UI.sleep_with_setting game.start end |