class CW::CurrentWord

Public Class Methods

new() click to toggle source
# File lib/cw/current_word.rb, line 9
def initialize
  @current_word = ''
end

Public Instance Methods

clear() click to toggle source
# File lib/cw/current_word.rb, line 21
def clear
  @current_word.clear
 end
process_letter(letr) click to toggle source
# File lib/cw/current_word.rb, line 29
def process_letter letr
  letr.downcase!
  push_letter letr
end
push_letter(letr) click to toggle source
# File lib/cw/current_word.rb, line 13
def push_letter letr
  @current_word += letr
end
strip() click to toggle source
# File lib/cw/current_word.rb, line 25
def strip
  @current_word.strip!
end
to_s() click to toggle source
# File lib/cw/current_word.rb, line 17
def to_s
  @current_word
end