From: Ben Ben Date: 2009-12-26T06:47:05+09:00 Subject: Re: Making a counter for each word's occurrences in a string > In this case, the return keyword has no effect, since we're already at > the end > of the method. However, it may make clearer the meaning of the > expression. > (The return keyword more or less means: don't go on executing the > method, stop > immediately and return to the calling method the value given to return, > or nil > if return is called without arguments). > > I hope this helps > > Stefano Thanks Stefano, I got the idea! Especially when you explain the line 6, it's clearer to me now. So whatever for loop did before line 6, all of those are stored in memory, then when you called line 6, it will return only the value part that got added to the hash a moment ago at one go right? I hope that is what you mean. -- Posted via http://www.ruby-forum.com/.