Class: Spellr::Reporter

Inherits:
BaseReporter show all
Defined in:
lib/spellr/reporter.rb

Instance Method Summary collapse

Methods inherited from BaseReporter

#counts, #exit_code, #increment, #initialize, #output, #print, #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



13
14
15
16
17
# File 'lib/spellr/reporter.rb', line 13

def call(token)
  super

  increment(:total)
end

#finishObject



7
8
9
10
11
# File 'lib/spellr/reporter.rb', line 7

def finish
  puts "\n"
  puts "#{pluralize 'file', counts[:checked]} checked"
  puts "#{pluralize 'error', counts[:total]} found"
end