Module: Publication::Spellchecker

Extended by:
Spellchecker
Included in:
Spellchecker
Defined in:
lib/publication/spellchecker.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



5
6
7
8
# File 'lib/publication/spellchecker.rb', line 5

def check
  files = Dir['./**/*'].map { |f| f if File.file?(f) }
  puts `bundle exec mdspell #{files.join(' ')} #{"-c .mdspell.config" if File.exists?('.mdspell.config')}`
end