Module: Fet::ScoreSummaryWriter

Included in:
ScoreSummary
Defined in:
lib/fet/score_summary_writer.rb

Overview

Methods for writing game score to file

Constant Summary collapse

SCORES_FILENAME =
"#{ENV["HOME"]}/.config/fet/scores".deep_freeze

Instance Method Summary collapse

Instance Method Details

#add_entry(game) ⇒ Object

:nocov:



19
20
21
# File 'lib/fet/score_summary_writer.rb', line 19

def add_entry(game)
  write_score_to_file(game)
end

#scores_filenameObject

NOTE: this is explicitly changed in tests, so no need to check for coverage :nocov:



14
15
16
# File 'lib/fet/score_summary_writer.rb', line 14

def scores_filename
  return SCORES_FILENAME
end