aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/container/seven_zip.rb
blob: d1839907cde126ed7c27996a557bb44a9b78ab9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "hbc/container/generic_unar"

module Hbc
  class Container
    class SevenZip < GenericUnar
      def self.me?(criteria)
        # TODO: cover self-extracting archives
        criteria.magic_number(/^7z/n) &&
          super
      end
    end
  end
end