Spec-Zone.ru › Homebrew

Exception: TapFormulaOrCaskUnavailableError Private

Inherits:
FormulaOrCaskUnavailableError
  • Object
  • RuntimeError
  • FormulaOrCaskUnavailableError
  • TapFormulaOrCaskUnavailableError
show all
Defined in:
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.

Raised when a formula or cask in a specific tap is not available.

Instance Attribute Summary collapse

  • #tap ⇒ Tap readonly private

Attributes inherited from FormulaOrCaskUnavailableError

#name

Instance Method Summary collapse

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

Methods inherited from FormulaOrCaskUnavailableError

#did_you_mean

Constructor Details

#initialize(tap, name) ⇒ 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)
  • name (String)


161
162
163
164
# File 'exceptions.rb', line 161

def initialize(tap, name)
  super "#{tap}/#{name}"
  @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)


158
159
160
# File 'exceptions.rb', line 158

def tap
  @tap
end

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

Spec-Zone.ru

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