From: Dave Lenhardt Date: 2008-09-20T22:02:47+09:00 Subject: Re: Confused regarding text example Alright, I think I got it. So basically, WordIndex's obj could be a file, an array of strings, etc. Phrases is basically a series of phrases (my mind just went blank on the correct terminology). Scan breaks down the series into an array containing the phrases. The do |word| end look is activated with each item in the array. The string is modified and is turned into all lower case,. Next, a check is made tosee if index[word] is empty. If so, then it's turned into an empty Hash. Finally, the object is pushed into the Hash that had the wanted string. Of course, if, say a file, had the same string three times...it would be listed three times. And the thing being "returned" is the @index[word] so to speak, correct? That is, the way you can access the Hash. -- Posted via http://www.ruby-forum.com/.