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, color_enabled?, green, 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/reporter.rb', line 17

def call(token)
  super

  increment(:total)
end

#finishObject



11
12
13
14
15
# File 'lib/spellr/reporter.rb', line 11

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

#parallel?Boolean

Returns:

  • (Boolean)


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

def parallel?
  true
end