lib/yard/spellcheck/printer.rb
def print_stats(checker)
        stats = checker.misspelled.sort_by { |word,count| -count }

        stats.each_with_index do |(word,count),index|
          puts "  #{index + 1}. #{word} (#{count})"
        end
      end
#
# Prints statistics gathered by the spellchecker.
#
# @param [Checker] checker
#   The spellchecker.
#
Prints statistics gathered by the spellchecker.
Prints statistics gathered by the spellchecker .
def print_stats(checker)
        stats = checker.misspelled.sort_by { |word,count| -count }
        stats.each_with_index do |(word,count),index|
          puts "  #{index + 1}. #{word} (#{count})"
        end
      end
def print_stats ( checker ) stats = checker . misspelled . sort_by { | word , count | - count } stats . each_with_index do | ( word , count ) , index | puts "  #{index + 1}. #{word} (#{count})" end end
Prints statistics gathered by the spellchecker.
Prints statistics gathered by the spellchecker .
checker
checker The spellchecker.
checker The spellchecker .