Spec-Zone.ru › Homebrew

Exception: TapFormulaClassUnavailableError Private

Inherits:
TapFormulaUnavailableError
  • Object
  • RuntimeError
  • FormulaOrCaskUnavailableError
  • FormulaUnavailableError
  • TapFormulaUnavailableError
  • TapFormulaClassUnavailableError
show all
Includes:
FormulaClassUnavailableErrorModule
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 does not contain a formula class.

Instance Attribute Summary collapse

  • #class_list ⇒ Array<T::Class[T.anything]> readonly private
  • #class_name ⇒ String readonly private
  • #path ⇒ Pathname, String readonly private

Attributes inherited from TapFormulaUnavailableError

#repository, #tap, #user

Attributes inherited from FormulaUnavailableError

#dependent

Attributes inherited from FormulaOrCaskUnavailableError

#name

Instance Method Summary collapse

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

Methods inherited from FormulaUnavailableError

#dependent_s

Methods inherited from FormulaOrCaskUnavailableError

#did_you_mean

Constructor Details

#initialize(tap, name, path, class_name, class_list) ⇒ 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)
  • path (Pathname, String)
  • class_name (String)
  • class_list (Array<T::Class[T.anything]>)


341
342
343
344
345
346
# File 'exceptions.rb', line 341

def initialize(tap, name, path, class_name, class_list)
  @path = path
  @class_name = class_name
  @class_list = class_list
  super tap, name
end

Instance Attribute Details

#class_list ⇒ Array<T::Class[T.anything]> (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:

  • (Array<T::Class[T.anything]>)


335
336
337
# File 'exceptions.rb', line 335

def class_list
  @class_list
end

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


332
333
334
# File 'exceptions.rb', line 332

def class_name
  @class_name
end

#path ⇒ Pathname, 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:

  • (Pathname, String)


329
330
331
# File 'exceptions.rb', line 329

def path
  @path
end

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

Spec-Zone.ru

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