From: Alex Young Date: 2007-10-15T23:31:33+09:00 Subject: Re: ruby wish-list Roger Pack wrote: > My personal ruby wish-list (for any feedback): > > > 1) the ability to rescue arrays (or some way to rescue multiple classes > without pain), like this: > > all_socket_interrupts_array = [SocketError, Errno::EHOSTUNREACH, > Errno::ENETUNREACH] > > begin > # stuff > rescue all_socket_interrupts # non ugly, yet precise! rescue *all_socket_interrupts_array => e Should work, I think. At least, it appears to under my brief tests... -- Alex