Spec-Zone.ru › Homebrew

Exception: TapFormulaUnavailableError Private

Inherits:
FormulaUnavailableError
  • Object
  • RuntimeError
  • FormulaOrCaskUnavailableError
  • FormulaUnavailableError
  • TapFormulaUnavailableError
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 in a specific tap is unavailable.

Direct Known Subclasses

TapFormulaClassUnavailableError, TapFormulaUnreadableError

Instance Attribute Summary collapse

  • #repository ⇒ String readonly private
  • #tap ⇒ Tap readonly private
  • #user ⇒ String readonly private

Attributes inherited from FormulaUnavailableError

#dependent

Attributes inherited from FormulaOrCaskUnavailableError

#name

Instance Method Summary collapse

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

Methods inherited from FormulaUnavailableError

#dependent_s

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)


306
307
308
309
310
311
# File 'exceptions.rb', line 306

def initialize(tap, name)
  @tap = tap
  @user = T.let(tap.user, String)
  @repository = T.let(tap.repository, String)
  super "#{tap}/#{name}"
end

Instance Attribute Details

#repository ⇒ String (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:

  • (String)


303
304
305
# File 'exceptions.rb', line 303

def repository
  @repository
end

#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)


297
298
299
# File 'exceptions.rb', line 297

def tap
  @tap
end

#user ⇒ String (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:

  • (String)


300
301
302
# File 'exceptions.rb', line 300

def user
  @user
end

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

Spec-Zone.ru

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