class CW::TestWords
Public Instance Methods
build_word_maybe()
click to toggle source
# File lib/cw/test_words.rb, line 21 def build_word_maybe @input_word ||= '' @input_word << key_chr if is_relevant_char? move_word_to_process if complete_word? end
print_failed_exit_words()
click to toggle source
# File lib/cw/test_words.rb, line 8 def print_failed_exit_words until stream.stream_empty? print.fail stream.pop[:value] + ' ' end end
print_marked_maybe()
click to toggle source
# File lib/cw/test_words.rb, line 32 def print_marked_maybe @popped = stream.pop_next_marked print.results(@popped) if(@popped && ! print_letters?) end
print_test_advice()
click to toggle source
# File lib/cw/test_words.rb, line 6 def print_test_advice ; print.print_advice('Test Words') ; end
process_input_word_maybe()
click to toggle source
# File lib/cw/test_words.rb, line 14 def process_input_word_maybe if @word_to_process stream.match_last_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_words.rb, line 27 def process_letter letr current_word.process_letter letr sleep_char_delay letr end