2018-07-23 23:04:49 +02:00
|
|
|
require_relative "uncompressed"
|
|
|
|
|
|
|
|
module UnpackStrategy
|
|
|
|
class Executable < Uncompressed
|
|
|
|
def self.can_extract?(path:, magic_number:)
|
2018-07-25 10:03:50 +02:00
|
|
|
magic_number.match?(/\A#!\s*\S+/n)
|
2018-07-23 23:04:49 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|