module AndriiCodebreaker::Statistic
Public Instance Methods
statistics()
click to toggle source
# File lib/andrii_codebreaker/statistic.rb, line 7 def statistics data = DbYaml.load_file_stats('result.yml') data.sort_by { |item| [-DIFFICULTY_SORT[item.difficulties.name.to_sym], item.used_attempts, item.used_hints] } end