Class: Codebreaker::Statistics
- Inherits:
-
Object
- Object
- Codebreaker::Statistics
- Includes:
- FileStore
- Defined in:
- lib/codebreaker.rb
Constant Summary
Constants included from FileStore
FileStore::FILE_DIRECTORY, FileStore::FILE_NAME
Instance Method Summary collapse
Methods included from FileStore
#load_file, #save_file, statistics
Instance Method Details
#show ⇒ Object
9 10 11 |
# File 'lib/codebreaker.rb', line 9 def show load_file&.each&.sort_by { |game| [game[:available_attempts], game[:used_hints], game[:used_attempts]] } end |