12 lines
202 B
Ruby
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
|