On 24-Oct-07, at 9:03 AM, Todd Benson wrote:

>   def dequeue
>     @list.shift
>   end

Save yourself some grief, do it this way:

def dequeue
   tmp = @list[0]
   @list[0] = nil
   @list.shift
   tmp
end

Cheers,
Bob

----
Bob Hutchison                  -- tumblelog at http:// 
www.recursive.ca/so/
Recursive Design Inc.          -- weblog at http://www.recursive.ca/ 
hutch
http://www.recursive.ca/       -- works on http://www.raconteur.info/ 
cms-for-static-content/home/