Class: Spellr::Reporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Spellr::Reporter
- Defined in:
- lib/spellr/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 22 |
# File 'lib/spellr/reporter.rb', line 17 def call(token) super filenames << token.location.file.relative_path.to_s increment(:total) end |
#finish ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/spellr/reporter.rb', line 9 def finish puts "\n" print_count(:checked, 'file') print_count(:total, 'error', 'found') interactive_command if counts[:total].positive? end |