Module: MdSpell
- Defined in:
- lib/mdspell.rb,
lib/mdspell/cli.rb,
lib/mdspell/typo.rb,
lib/mdspell/version.rb,
lib/mdspell/text_line.rb,
lib/mdspell/configuration.rb,
lib/mdspell/spell_checker.rb
Overview
This module holds all the MdSpell code (except mdspell shell command).
Defined Under Namespace
Classes: CLI, Configuration, SpellChecker, TextLine, Typo
Constant Summary collapse
- VERSION =
Current version
'0.1.7'.freeze
Class Method Summary collapse
Class Method Details
.run ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/mdspell.rb', line 12 def self.run cli = MdSpell::CLI.new cli.run # Spell-check each file. cli.files.each do |filename| spell_checker = SpellChecker.new(filename) verbose "Spell-checking #{spell_checker.filename}..." spell_checker.typos.each do |typo| error "#{spell_checker.filename}:#{typo.line.location}: #{typo.word}" end end end |