Spec-Zone.ru › Homebrew

Exception: Cask::CaskConflictError Private

Inherits:
AbstractCaskErrorWithToken
  • Object
  • RuntimeError
  • CaskError
  • AbstractCaskErrorWithToken
  • Cask::CaskConflictError
show all
Defined in:
cask/exceptions.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Error when a cask conflicts with another cask.

Instance Attribute Summary collapse

  • #conflicting_cask ⇒ Cask readonly private

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

  • #initialize(token, conflicting_cask) ⇒ void constructor private

Constructor Details

#initialize(token, conflicting_cask) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • token (String, Symbol, Cask)
  • conflicting_cask (Cask)


74
75
76
77
# File 'cask/exceptions.rb', line 74

def initialize(token, conflicting_cask)
  super(token)
  @conflicting_cask = conflicting_cask
end

Instance Attribute Details

#conflicting_cask ⇒ Cask (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Cask)


71
72
73
# File 'cask/exceptions.rb', line 71

def conflicting_cask
  @conflicting_cask
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/Cask/CaskConflictError.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API