wc = {} #Creates a new empty dictionnary. A ruby Hash

for word in words # Look over every word in words.... words.split(' 
").each do |word| ...would probably be a ruby equivalent.

wc[word] += 1 # Since the default value of entries in the hash is zero, 
this was set in the line right before, you now set the value of the 
"word" to 1. Exact same thing in ruby.


hash = {}
hash.default=0
words.split(' ").each { |word| hash[word] += 1 }


I don't know what the feddparser returns so I can't really help for the 
rest...

-- 
Posted via http://www.ruby-forum.com/.