diff --git a/Library/Homebrew/cask/dsl/depends_on.rb b/Library/Homebrew/cask/dsl/depends_on.rb index 37cfb302d0..7a5756f9c0 100644 --- a/Library/Homebrew/cask/dsl/depends_on.rb +++ b/Library/Homebrew/cask/dsl/depends_on.rb @@ -82,6 +82,12 @@ module Cask @arch.concat(arches.map { |arch| VALID_ARCHES[arch] }) end + + sig { returns(T::Boolean) } + def empty? = T.let(__getobj__, T::Hash[Symbol, T.untyped]).empty? + + sig { returns(T::Boolean) } + def present? = !empty? end end end