2018-08-01 00:56:36 +02:00

12 lines
202 B
Ruby

require_relative "uncompressed"
module UnpackStrategy
class Executable < Uncompressed
using Magic
def self.can_extract?(path)
path.magic_number.match?(/\A#!\s*\S+/n)
end
end
end