mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
10 lines
176 B
Ruby
10 lines
176 B
Ruby
![]() |
require_relative "tar"
|
||
|
|
||
|
module UnpackStrategy
|
||
|
class Compress < Tar
|
||
|
def self.can_extract?(path:, magic_number:)
|
||
|
magic_number.match?(/\A\037\235/n)
|
||
|
end
|
||
|
end
|
||
|
end
|