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.2.0'.freeze

Class Method Summary collapse

Class Method Details

.run(argv) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/mdspell.rb', line 12

def self.run(argv)
  cli = MdSpell::CLI.new
  cli.run argv
  cli.files.each(&method(:check_file))

  exit_if_had_errors
end