Subject: closing files with abrupt interruptions
From: "Daniel Brumbaugh Keeney" <devi.webmaster gmail.com>
Date: Fri, 15 Feb 2008 22:39:53 +0900
loop do
File.open somefile, 'r' do |io|
next
end
end
Does somefile get closed?
How would I test that?
I have the same question if it raises an error (that gets rescued) or
throws a symbol.
Daniel Brumbaugh Keeney