Class: Spellr::AutocorrectReporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Spellr::AutocorrectReporter
- Defined in:
- lib/spellr/autocorrect_reporter.rb
Instance Method Summary collapse
Methods inherited from BaseReporter
#counts, #exit_code, #increment, #initialize, #output, #print, #print_count, #print_value, #puts, #warn
Methods included from StringFormat
aqua, bold, green, key, lighten, normal, pluralize, red
Constructor Details
This class inherits a constructor from Spellr::BaseReporter
Instance Method Details
#call(token) ⇒ Object
17 18 19 20 21 |
# File 'lib/spellr/autocorrect_reporter.rb', line 17 def call(token) super handle_replace(token) end |
#finish ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/spellr/autocorrect_reporter.rb', line 9 def finish puts "\n" print_count(:checked, 'file') print_value(total, 'error', 'found') print_count(:total_fixed, 'error', 'fixed', hide_zero: true) print_count(:total_unfixed, 'error', 'unfixed', hide_zero: true) end |