class CW::TestLetters

Public Instance Methods

build_word_maybe() click to toggle source
# File lib/cw/test_letters.rb, line 13
def build_word_maybe
  @input_word ||= ''
  @input_word << key_chr if is_relevant_char?
  move_word_to_process if is_relevant_char?
end
print_marked_maybe() click to toggle source
process_input_word_maybe() click to toggle source
# File lib/cw/test_letters.rb, line 6
def process_input_word_maybe
  if @word_to_process
    stream.match_first_active_element @process_input_word # .strip
    @process_input_word = @word_to_process = nil
  end
end
process_letter(letr) click to toggle source
# File lib/cw/test_letters.rb, line 19
def process_letter letr
  letr.downcase!
  sleep_char_delay letr
end