Update RBI files
This commit is contained in:
parent
f38a672938
commit
b1f722aed7
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user