Class: Formulary::FromPathLoader Private
- Inherits:
-
FormulaLoader
- Object
- FormulaLoader
- Formulary::FromPathLoader
- 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.
Loads formulae from disk using a path.
Instance Attribute Summary
Attributes inherited from FormulaLoader
#alias_path, #name, #path, #tap
Instance Method Summary collapse
-
#initialize(path) ⇒ FromPathLoader
constructor
private
A new instance of FromPathLoader.
Methods inherited from FormulaLoader
Methods included from Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Constructor Details
#initialize(path) ⇒ FromPathLoader
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 FromPathLoader.
572 573 574 575 576 |
# File 'formulary.rb', line 572 def initialize(path) path = Pathname.new(path). name = path.basename(".rb").to_s super name, path, tap: Homebrew::API.tap_from_source_download(path) end |