# File lib/dragonfly/temp_object.rb, line 54
    def tempfile
      @tempfile ||= begin
        case initialized_with
        when :tempfile
          @tempfile = initialized_tempfile
          @tempfile.close
        when :data
          @tempfile = new_tempfile(initialized_data)
        when :file
          @tempfile = copy_to_tempfile(initialized_file.path)
        end
        @tempfile
      end
    end