From: Jeff Coleman Date: 2006-04-10T16:11:44+09:00 Subject: Re: Ruby Grammar - "do" Bihal wrote: > Okay. My next question is then > > end.collect > > I've just spent all day re-doing my grammar to ignore "end." as an end > keyword. I'll see if I can find the example where it didn't seem to > work. > > If you guys would be so kind as to tell me what it is and what it is > doing, that would be rgeat. > > Bihal Isn't it just resolving the previous do? It's calling the operation: [ "title", ...etc... "cloud", ].delete_if do |x| send(x).nil? end And then calling the "collect" method for the result of that operation. Jeff -- Posted via http://www.ruby-forum.com/.