Class: Spellr::WordlistReporter

Inherits:
BaseReporter show all
Defined in:
lib/spellr/wordlist_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



16
17
18
# File 'lib/spellr/wordlist_reporter.rb', line 16

def call(token)
  words << token.spellr_normalize
end

#finishObject



12
13
14
# File 'lib/spellr/wordlist_reporter.rb', line 12

def finish
  output.puts words.sort.join
end

#parallel?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/spellr/wordlist_reporter.rb', line 8

def parallel?
  true
end