Class: Zlib::GzipFile

Inherits:
Object show all
Defined in:
lib/rbkb/extends.rb

Overview

Helpers for Zlib::GzipFile… more to come?

Instance Method Summary collapse

Instance Method Details

#get_xtra_infoObject

extra info dump for gzipped files



692
693
694
695
696
697
698
699
700
701
# File 'lib/rbkb/extends.rb', line 692

def get_xtra_info
  info = {
    :file_crc     => crc.to_hex,
    :file_comment => comment,
    :file_name    => orig_name,
    :level        => level,
    :mtime        => mtime,
    :os           =>  (Zlib::OSMAP[os_code] || os_code)
  }
end