vendor/gems/rubyzip-0.9.1/lib/quiz1/t/solutions/Bill Guindon/solitaire.rb
# counts words as 5 char blocks
counts words as 5 char blocks
counts words as 5 char blocks
def word_count(text, len)
    words, strays = text.length.divmod(len)
    words += 1 if strays > 0
    pad = "X" * (len - strays)
    return [words, pad]
  end
def word_count ( text , len ) words , strays = text . length . divmod ( len ) words += 1 if strays > 0 pad = "X" * ( len - strays ) return [ words , pad ] end
counts words as 5 char blocks
counts words as 5 char blocks
text
<not_specific>
len
<not_specific>