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 # typed: strict
module UnpackStrategy module UnpackStrategy::Zip::MacOSZipExtension
class Zip include Kernel
module MacOSZipExtension
include Kernel
end
end
end end

View File

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

View File

@ -3,14 +3,3 @@
module UnpackStrategy module UnpackStrategy
include Kernel include Kernel
end 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