From: dblack@... Date: 2002-09-20T11:32:58+09:00 Subject: Re: loving the look of Ruby code Hi -- On Fri, 20 Sep 2002, Hal E. Fulton wrote: > ----- Original Message ----- > From: > To: "ruby-talk ML" > Sent: Thursday, September 19, 2002 9:17 PM > Subject: loving the look of Ruby code > > > > Hi -- > > > > I just think Ruby code looks so great. I'm so glad we get to do > > things like this: [...] > > I love it all, including the oft-maligned tailing end's :-) > > :) I understand. > > But the way the indentation came out made me laugh. > Like saying: > Boy, I love Perl code. Just look how beautiful and > intuitive this is: > *&(*&(*#$%*_^#$(&^%$)#&^%_^%_@^_#*$^&_(#%^@_%^+!@$^_%^_#^ > > :) Ha -- I need to expand(1) things I guess :-) module Data include DBDBD def parse cmt = "" each do |s| case s when END_RE yield cmt when DATA_RE yield cmt,s cmt = "" when COMMENT_RE cmt << s end end end end > PS - Thinking of imitating Andy (/\ndy) and > signing my name as |-|al. Or perhaps |-|/\|_. Mine looks like cuneiform: |>/\\/||> David -- David Alan Black | Register for RubyConf 2002! home: dblack@candle.superlink.net | November 1-3 work: blackdav@shu.edu | Seattle, WA, USA Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com