Class: AbbrevCheck::IterativeCheck

Inherits:
VocaBuil::IterativeCheck show all
Defined in:
lib/abbrev_checker/abbrev_check.rb

Constant Summary

Constants inherited from VocaBuil::IterativeCheck

VocaBuil::IterativeCheck::SCORE_LOG_FILE

Instance Method Summary collapse

Methods inherited from VocaBuil::IterativeCheck

#initialize, #run

Constructor Details

This class inherits a constructor from VocaBuil::IterativeCheck

Instance Method Details

#run_checksObject



71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/abbrev_checker/abbrev_check.rb', line 71

def run_checks
  @iter.times do |i|
    puts "\nIterative check ##{i+1}/#{@iter}".blue
    # ここでAbbrevCheck::BaseCheckを明示的に使う
    AbbrevCheck::BaseCheck.new(@options).run.each do |w, val|
      if val == 'f'
        @wrong_answers << w
      else
        @score += 1
      end
    end
  end
end