Fix type signature.
This commit is contained in:
parent
0211feebd7
commit
8e04ab8b42
@ -439,10 +439,10 @@ module Cask
|
|||||||
|
|
||||||
# Loader which tries loading casks from tap paths, failing
|
# Loader which tries loading casks from tap paths, failing
|
||||||
# if the same token exists in multiple taps.
|
# if the same token exists in multiple taps.
|
||||||
class FromNameLoader < FromPathLoader
|
module FromNameLoader
|
||||||
sig {
|
sig {
|
||||||
params(ref: T.any(String, Pathname, Cask, URI::Generic), warn: T::Boolean)
|
params(ref: T.any(String, Pathname, Cask, URI::Generic), warn: T::Boolean)
|
||||||
.returns(T.nilable(T.attached_class))
|
.returns(T.nilable(FromTapLoader))
|
||||||
}
|
}
|
||||||
def self.try_new(ref, warn: false)
|
def self.try_new(ref, warn: false)
|
||||||
return unless ref.is_a?(String)
|
return unless ref.is_a?(String)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user