class GZippedTar::Tar::ChecksumField

Constants

EMPTY_VALUE

Public Instance Methods

pack() click to toggle source
# File lib/gzipped_tar/tar/checksum_field.rb, line 6
def pack
  "a7a"
end
to_s(value) click to toggle source
# File lib/gzipped_tar/tar/checksum_field.rb, line 14
def to_s(value)
  return EMPTY_VALUE if value.nil?

  [format("%06o", value), " "]
end
unpack() click to toggle source
# File lib/gzipped_tar/tar/checksum_field.rb, line 10
def unpack
  "A8"
end