class Spellr::WordlistReporter
Public Instance Methods
call(token)
click to toggle source
# File lib/spellr/wordlist_reporter.rb, line 12 def call(token) words << token.spellr_normalize end
finish()
click to toggle source
# File lib/spellr/wordlist_reporter.rb, line 8 def finish puts words.sort.join unless words.empty? end
Private Instance Methods
words()
click to toggle source
# File lib/spellr/wordlist_reporter.rb, line 18 def words @words ||= begin output.counts[:words] = Set.new unless output.counts.key?(:words) output.counts[:words] end end