Class: Formulary::FormulaAPILoader Private
- Inherits:
-
FormulaLoader
- Object
- FormulaLoader
- Formulary::FormulaAPILoader
- Defined in:
- formulary.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.
Load formulae from the API.
Instance Attribute Summary
Attributes inherited from FormulaLoader
Instance Method Summary collapse
-
#initialize(name) ⇒ FormulaAPILoader
constructor
private
A new instance of FormulaAPILoader.
-
#klass(flags:, ignore_errors:) ⇒ Object
private
Methods inherited from FormulaLoader
Methods included from Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Constructor Details
#initialize(name) ⇒ FormulaAPILoader
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 a new instance of FormulaAPILoader.
503 504 505 |
# File 'formulary.rb', line 503 def initialize(name) super name, Formulary.core_path(name) end |
Instance Method Details
#klass(flags:, ignore_errors:) ⇒ Object
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.
507 508 509 510 |
# File 'formulary.rb', line 507 def klass(flags:, ignore_errors:) load_from_api(flags: flags) unless Formulary.formula_class_defined_from_api?(name) Formulary.formula_class_get_from_api(name) end |