From: Todd Benson Date: 2008-03-02T03:58:50+09:00 Subject: Re: making a monthly calendar... On Sat, Mar 1, 2008 at 5:45 AM, Mikkel Bruun wrote: > Todd Benson wrote: > > On Sat, Mar 1, 2008 at 3:03 AM, Todd Benson wrote: > >> > > > >> > > >> # just running through -1 to 1 and adding to the current month > >> > > >> day_sets[1..2].flatten.slice(0..35).compact.each_slice(7) {|i| p i} > >> > > >> Keep in mind scope. The "i" variable is local to each block; all by > >> himself. It doesn't have to be "i", also. > > > > My apologies, this was aimed at newbies, not at you. > > > > Todd > > no problem... > > thanks for your reply...ill see wha i can make of it... Thanks for the exercise. I've been meaning to make use of a graphical calendar for a while, and now you've given me an excuse to finish it! Todd