Class: CodebreakerGem::Output
- Inherits:
-
OutputHelper
- Object
- OutputHelper
- CodebreakerGem::Output
- Defined in:
- lib/app/helpers/output.rb
Constant Summary collapse
- MESSAGE =
'message'
Instance Method Summary collapse
- #difficulty_heading ⇒ Object
- #exit ⇒ Object
- #game_start_heading ⇒ Object
- #introduction ⇒ Object
- #registration ⇒ Object
- #rules ⇒ Object
- #save_result ⇒ Object
- #start_new_game ⇒ Object
- #statistics(game) ⇒ Object
- #win ⇒ Object
Methods inherited from OutputHelper
Instance Method Details
#difficulty_heading ⇒ Object
24 25 26 27 |
# File 'lib/app/helpers/output.rb', line 24 def difficulty_heading (:difficulty_heading) display(Difficulty.list) end |
#exit ⇒ Object
33 34 35 |
# File 'lib/app/helpers/output.rb', line 33 def exit (:exit) end |
#game_start_heading ⇒ Object
20 21 22 |
# File 'lib/app/helpers/output.rb', line 20 def game_start_heading (:game_start_heading) end |
#introduction ⇒ Object
7 8 9 |
# File 'lib/app/helpers/output.rb', line 7 def introduction (:introduction) end |
#registration ⇒ Object
15 16 17 18 |
# File 'lib/app/helpers/output.rb', line 15 def registration (:registration_heading) (:player_name_registration) end |
#rules ⇒ Object
11 12 13 |
# File 'lib/app/helpers/output.rb', line 11 def rules (:rules) end |
#save_result ⇒ Object
46 47 48 |
# File 'lib/app/helpers/output.rb', line 46 def save_result (:save_result) end |
#start_new_game ⇒ Object
50 51 52 |
# File 'lib/app/helpers/output.rb', line 50 def start_new_game (:start_new_game) end |
#statistics(game) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/app/helpers/output.rb', line 37 def statistics(game) (:statistics, used_attempts: game.used_attempts, total_attempts: game.total_attempts, used_hints: game.used_hints, total_hints: game.total_hints) (:input_secret_code) end |
#win ⇒ Object
29 30 31 |
# File 'lib/app/helpers/output.rb', line 29 def win (:win) end |