Class: Chrysalis::Ar::TgzArchive

Inherits:
TarGzArchive show all
Defined in:
lib/chrysalis/ar/tar_gz.rb

Overview

Implements support for extracting tar archives compressed with gzip compression.

Archives of this type are identified by the file extension .tgz.

Constant Summary collapse

EXTENSION =
".tgz".freeze

Class Method Summary collapse

Methods inherited from TarArchive

#extract, #initialize

Methods inherited from Chrysalis::Archive

#extract, extract, inherited, #initialize

Constructor Details

This class inherits a constructor from Chrysalis::Ar::TarArchive

Class Method Details

.extracts?(path) ⇒ Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/chrysalis/ar/tar_gz.rb', line 39

def self.extracts?(path)
  path.end? EXTENSION
end