Hi,

In message "Re: Tempfile strangeness in 1.9.0"
    on 04/04/25, Steven Jenkins <steven.jenkins / ieee.org> writes:

|What I didn't understand is why
|
|f = Tempfile.new('test')
|f.a
|f.close
|
|raises NoMethodError, but
|
|Tempfile.new('test') do |f|
|     f.a
|end
|
|does not. The answer, of course, is that Tempfile.new() does not take a 
|block. Sorry about the confusion.

Use Tempfile.open instead, as you might notice already.

							matz.