Module: TarWriterHelpers

Defined in:
lib/nswtopo/helpers/tar_writer.rb

Instance Method Summary collapse

Instance Method Details

#add_entry(entry) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/nswtopo/helpers/tar_writer.rb', line 2

def add_entry(entry)
  check_closed
  @io.write entry.header
  @io.write entry.read
  @io.write ?\0 while @io.pos % 512 > 0
  self
end