Tempfile with a certain suffix

Hi,

is there a way in ruby to create a tempfile with a certain suffix, say
“.html”?
I can of course rename my created tempfile but then I have to take care
for deleting the file.

Thomas