Spec-Zone.ru › Homebrew

Exception: Cask::TapCaskUnavailableError Private

Inherits:
CaskUnavailableError
  • Object
  • RuntimeError
  • CaskError
  • AbstractCaskErrorWithToken
  • CaskUnavailableError
  • Cask::TapCaskUnavailableError
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 in a specific tap is not available.

Instance Attribute Summary collapse

  • #tap ⇒ Tap readonly private

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

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

Constructor Details

#initialize(tap, token) ⇒ 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:

  • tap (Tap)
  • token (String)


107
108
109
110
# File 'cask/exceptions.rb', line 107

def initialize(tap, token)
  super("#{tap}/#{token}")
  @tap = tap
end

Instance Attribute Details

#tap ⇒ Tap (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:

  • (Tap)


104
105
106
# File 'cask/exceptions.rb', line 104

def tap
  @tap
end

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

Spec-Zone.ru

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