# File lib/dragonfly/temp_object.rb, line 106 def file(&block) f = tempfile.open tempfile.binmode if block_given? ret = yield f tempfile.close unless tempfile.closed? else ret = f end ret end