module Publication::Spellchecker

Public Instance Methods

check() click to toggle source
# File lib/publication/spellchecker.rb, line 5
def check
  files = Dir['./**/*.md'].map { |f| f if File.file?(f) }
  puts `bundle exec mdspell #{files.join(' ')} #{"-c .mdspell.config" if File.exists?('.mdspell.config')}`
end