Module: CodebrackerLogicGame::Storage
- Included in:
- Game
- Defined in:
- lib/modules/storage.rb
Constant Summary collapse
- STORAGE_FILE =
'storage.yml'
Instance Method Summary collapse
Instance Method Details
#show_statistics ⇒ Object
13 14 15 |
# File 'lib/modules/storage.rb', line 13 def show_statistics tp(statistics_with_raiting).class end |
#store_game ⇒ Object
7 8 9 10 11 |
# File 'lib/modules/storage.rb', line 7 def store_game saved_games = load_games_history saved_games << self File.write(STORAGE_FILE, saved_games.to_yaml) end |