Update RBI files
This commit is contained in:
parent
f38a672938
commit
b1f722aed7
@ -1,9 +1,5 @@
|
||||
# typed: strict
|
||||
|
||||
module UnpackStrategy
|
||||
class Zip
|
||||
module MacOSZipExtension
|
||||
module UnpackStrategy::Zip::MacOSZipExtension
|
||||
include Kernel
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user