Class: Formulary::NullLoader Private
- Inherits:
-
FormulaLoader
- Object
- FormulaLoader
- Formulary::NullLoader
- Defined in:
- Library/Homebrew/formulary.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Pseudo-loader which will raise a FormulaUnavailableError when trying to load the corresponding formula.
Instance Attribute Summary
Attributes inherited from FormulaLoader
Instance Method Summary collapse
- #get_formula ⇒ Object private
-
#initialize(name) ⇒ NullLoader
constructor
private
A new instance of NullLoader.
Methods inherited from FormulaLoader
Methods included from Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Constructor Details
#initialize(name) ⇒ NullLoader
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of NullLoader.
304 305 306 |
# File 'Library/Homebrew/formulary.rb', line 304 def initialize(name) super name, Formulary.core_path(name) end |
Instance Method Details
#get_formula ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
308 309 310 |
# File 'Library/Homebrew/formulary.rb', line 308 def get_formula(*) raise FormulaUnavailableError, name end |