Exception: FormulaClassUnavailableError Private
- Inherits:
-
FormulaUnavailableError
- Object
- RuntimeError
- FormulaOrCaskUnavailableError
- FormulaUnavailableError
- FormulaClassUnavailableError
- 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 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 FormulaUnavailableError
Attributes inherited from FormulaOrCaskUnavailableError
Instance Method Summary collapse
- #initialize(name, path, class_name, class_list) ⇒ void constructor private
Methods inherited from FormulaUnavailableError
Methods inherited from FormulaOrCaskUnavailableError
Constructor Details
#initialize(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.
255 256 257 258 259 260 |
# File 'exceptions.rb', line 255 def initialize(name, path, class_name, class_list) @path = path @class_name = class_name @class_list = class_list super 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.
249 250 251 |
# File 'exceptions.rb', line 249 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.
246 247 248 |
# File 'exceptions.rb', line 246 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.
243 244 245 |
# File 'exceptions.rb', line 243 def path @path end |