My first example closes all except the main window. My second example, 
as you quoted, will only close the most recent window.

-- 
Posted via http://www.ruby-forum.com/.