From: Mikkel Bruun Date: 2008-03-01T20:45:06+09:00 Subject: Re: making a monthly calendar... 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... -- Posted via http://www.ruby-forum.com/.