From: ara.t.howard@... Date: 2006-04-07T11:58:41+09:00 Subject: Re: accessing session with session.each On Fri, 7 Apr 2006, sas sas wrote: > I'd like to traverse thru the contents of the session object > > I've been looking at C:\ruby\lib\ruby\1.8\cgi\session.rb and found out > that there's no each method in it. > > So I tried to make accesible the data collection. > > First I tried with something like this > > def each(block) > unless @data > @data = @dbman.restore > end > @data.each block > end def each(&block) unless @data @data = @dbman.restore end @data.each &block end -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama