Sha256: 0fed503d802a985d3fef77b7c89819b72808588120bd572f2e3092d77e4fac03

Contents?: true

Size: 878 Bytes

Versions: 9

Compression:

Stored size: 878 Bytes

Contents

module Clausewitz; module Spelling
  class Formatter
    def render(overall_results)
      render_overall_results(overall_results)
    end

    private

    def render_overall_results(overall_results)
      overall_results.files.each do |file_results|
        render_file_results(file_results)
      end
    end

    def render_file_results(file_results)
      file_results.langs.each do |lang_results|
        render_lang_results(lang_results)
      end
    end

    def render_lang_results(lang_results)
      lang_results.keys.each do |key_results|
        render_key_results(key_results)
      end
    end

    def render_key_results(key_results)
      key_results.spellchecks.each do |spellcheck_result|
        render_spellcheck_result(spellcheck_result)
      end
    end

    def render_spellcheck_result(spellcheck_result)
    end
  end
end; end # Clausewitz::Spelling

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
clausewitz-spelling-0.1.9 lib/clausewitz/spelling/formatter.rb
clausewitz-spelling-0.1.8 lib/clausewitz/spelling/formatter.rb
clausewitz-spelling-0.1.7 lib/clausewitz/spelling/formatter.rb
clausewitz-spelling-0.1.6 lib/clausewitz/spelling/formatter.rb
clausewitz-spelling-0.1.5 lib/clausewitz/spelling/formatter.rb
clausewitz-spelling-0.1.4 lib/clausewitz/spelling/formatter.rb
clausewitz-spelling-0.1.3 lib/clausewitz/spelling/formatter.rb
clausewitz-spelling-0.1.1 lib/clausewitz/spelling/formatter.rb
clausewitz-spelling-0.1.0 lib/clausewitz/spelling/formatter.rb