Clean up rbi files
This commit is contained in:
parent
abfe29040b
commit
4f2ff3819b
@ -1,8 +1,5 @@
|
|||||||
# typed: strict
|
# typed: strict
|
||||||
|
|
||||||
module GitRepositoryExtension
|
module GitRepositoryExtension
|
||||||
include Kernel
|
requires_ancestor { Pathname }
|
||||||
|
|
||||||
sig { params(args: T.any(String, Pathname)).returns(Pathname) }
|
|
||||||
def join(*args); end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,19 +1,9 @@
|
|||||||
# typed: strict
|
# typed: strict
|
||||||
|
|
||||||
module DiskUsageExtension
|
module DiskUsageExtension
|
||||||
include Kernel
|
requires_ancestor { Pathname }
|
||||||
|
|
||||||
def exist?; end
|
|
||||||
|
|
||||||
def symlink?; end
|
|
||||||
|
|
||||||
def resolved_path; end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
module ObserverPathnameExtension
|
module ObserverPathnameExtension
|
||||||
include Kernel
|
requires_ancestor { Pathname }
|
||||||
|
|
||||||
def dirname; end
|
|
||||||
|
|
||||||
def basename; end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -45,7 +45,7 @@ module OS
|
|||||||
sig { returns(T.self_type) }
|
sig { returns(T.self_type) }
|
||||||
def strip_patch
|
def strip_patch
|
||||||
# Big Sur is 11.x but Catalina is 10.15.x.
|
# Big Sur is 11.x but Catalina is 10.15.x.
|
||||||
if major >= 11
|
if T.must(major) >= 11
|
||||||
self.class.new(major.to_s)
|
self.class.new(major.to_s)
|
||||||
else
|
else
|
||||||
major_minor
|
major_minor
|
||||||
|
|||||||
@ -1,10 +0,0 @@
|
|||||||
# typed: strict
|
|
||||||
|
|
||||||
module OS
|
|
||||||
module Mac
|
|
||||||
class Version
|
|
||||||
sig { returns(Token) }
|
|
||||||
def major; end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Loading…
x
Reference in New Issue
Block a user