Class: VocaBuil::IterativeCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/voca_buil/multi_check.rb,
lib/voca_buil/_stacks/_stacks_v2_260114/multi_check.rb

Direct Known Subclasses

AbbrevCheck::IterativeCheck

Constant Summary collapse

SCORE_LOG_FILE =

追加

'./score_log.yaml'

Instance Method Summary collapse

Constructor Details

#initialize(options, iter = 2) ⇒ IterativeCheck

Returns a new instance of IterativeCheck.



266
267
268
269
270
271
272
# File 'lib/voca_buil/multi_check.rb', line 266

def initialize(options, iter = 2)
  @options = options
  @iter = iter
  @score = 0
  @wrong_answers = []
  @dir_count = Hash.new(0) # ディレクトリごとの間違い数カウント
end

Instance Method Details

#runObject



274
275
276
277
278
279
# File 'lib/voca_buil/multi_check.rb', line 274

def run
  run_checks
  print_score
  print_wrong_answers
  print_difficult_roots
end