Top Level Namespace

Defined Under Namespace

Modules: AppController, ExitView, GamesView, HighscoresView, OptionsView, RoundsView, RulesView, SithJediEwok Classes: Game, QuoteGenerator, Round

Instance Method Summary collapse

Instance Method Details

#dispatch(choice) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/dispatch.rb', line 3

def dispatch(choice)
  case choice
  when 0
    AppController.play_game
  when 1
    AppController.show_rules
  when 2
    AppController.show_highscores
  when 3
    AppController.exit?
  end
end