Nobuyoshi Nakada wrote:
> Hi,
> Did you want to write like this?
> 
>   ObjectSpace.each_object(IO) do |o|
>     o.close rescue nil
>   end
> 

Yes that's what I mean.