Class: SpellCheck::CLI
- Inherits:
-
Object
- Object
- SpellCheck::CLI
- Defined in:
- lib/spellcheck/cli.rb
Class Method Summary collapse
Class Method Details
.run(filepath) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/spellcheck/cli.rb', line 3 def self.run(filepath) begin report = ProofReader.check(File.read(filepath)) if report.accept? puts ColorString.green('All ok') else puts report end rescue Errno::ENOENT => ex puts ex. end end |