module Spellcard

Constants

VERSION

Public Class Methods

setup() click to toggle source
# File lib/spellcard.rb, line 6
def self.setup
  if ARGV[0]
    text = ''
    File.open(ARGV[0]) do |f|
      text = f.read
    end

    # parser = Parser.new
    # text = parser.parse(text)

    checker = Checker.new
    checker.find_typo(text).each do |word|
      puts word
    end
  else      
  end
end