From a42cc9499e0b6196b6ef8a12220ae81ceb273d8c Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 17 Nov 2020 03:52:27 +0100 Subject: [PATCH] Add type signatures to `Cask::Cache`. --- Library/Homebrew/cask/cache.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/cache.rb b/Library/Homebrew/cask/cache.rb index 1cd57f9060..911a4eb833 100644 --- a/Library/Homebrew/cask/cache.rb +++ b/Library/Homebrew/cask/cache.rb @@ -6,9 +6,10 @@ module Cask # # @api private module Cache - module_function + extend T::Sig - def path + sig { returns(Pathname) } + def self.path @path ||= HOMEBREW_CACHE/"Cask" end end