# File tar.rb, line 597 597: def close 598: @total_blocks += @current_entry.write( @file ) unless @current_entry.nil? 599: @current_entry = nil 600: 601: nil_block_text = RecordHeader.make_nil.to_s 602: 2.times { @file.write nil_block_text; @total_blocks += 1 } 603: 604: if ( extra = 20 - @total_blocks % 20 ) < 20 605: extra.times { @file.write nil_block_text } 606: end 607: 608: super 609: end