s = "The green hat is the twin of the green hat"
h = Hash.new(0)
s.split.each do |w|
...

Ruby Count words in a string

by andyjeffries, May 02, 2009 13:41, 16 refactorings, tagged with hash, string strip, simple

This is a coding question I...

5cb7a05b6de4a6655319db9333be429c Talk