class Spellr::CheckInteractive

Private Instance Methods

check_file(file, start_at = nil, wordlist_proc = wordlist_proc_for(file)) click to toggle source
Calls superclass method Spellr::Check#check_file
# File lib/spellr/check_interactive.rb, line 16
def check_file(file, start_at = nil, wordlist_proc = wordlist_proc_for(file))
  restart_token = catch(:check_file_from) do
    super(file, start_at, wordlist_proc)
    nil
  end
  check_file_from_restart(file, restart_token, wordlist_proc) if restart_token
end
check_file_from_restart(file, restart_token, wordlist_proc) click to toggle source
# File lib/spellr/check_interactive.rb, line 10
def check_file_from_restart(file, restart_token, wordlist_proc)
  # new wordlist cache when adding a word
  wordlist_proc = wordlist_proc_for(file) unless restart_token.replacement
  check_file(file, restart_token.location, wordlist_proc)
end