Update RBI files

This commit is contained in:
Douglas Eichelberger 2023-03-20 13:35:29 -07:00
parent f38a672938
commit b1f722aed7
3 changed files with 5 additions and 17 deletions

View File

@ -1,9 +1,5 @@
# typed: strict
module UnpackStrategy
class Zip
module MacOSZipExtension
module UnpackStrategy::Zip::MacOSZipExtension
include Kernel
end
end
end

View File

@ -467,6 +467,7 @@ class Pathname
[]
end
sig { returns(String) }
def magic_number
@magic_number ||= if directory?
""
@ -477,11 +478,13 @@ class Pathname
end
end
sig { returns(String) }
def file_type
@file_type ||= system_command("file", args: ["-b", self], print_stderr: false)
.stdout.chomp
end
sig { returns(T::Array[String]) }
def zipinfo
@zipinfo ||= system_command("zipinfo", args: ["-1", self], print_stderr: false)
.stdout

View File

@ -3,14 +3,3 @@
module UnpackStrategy
include Kernel
end
class Pathname
sig { returns(String) }
def magic_number; end
sig { returns(String) }
def file_type; end
sig { returns(T::Array[String]) }
def zipinfo; end
end