Class: Chrysalis::Ar::TarGzArchive

Inherits:
TarArchive 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 .tar.gz.

Direct Known Subclasses

TgzArchive

Constant Summary collapse

EXTENSION =
".tar.gz".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)


15
16
17
# File 'lib/chrysalis/ar/tar_gz.rb', line 15

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