Class: Formulary::FromPathLoader Private
- Inherits:
-
FormulaLoader
- Object
- FormulaLoader
- Formulary::FromPathLoader
- 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.
Loads formulae from disk using a path.
Instance Attribute Summary
Attributes inherited from FormulaLoader
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. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of FromPathLoader.
203 204 205 206 |
# File 'Library/Homebrew/formulary.rb', line 203 def initialize(path) path = Pathname.new(path). super path.basename(".rb").to_s, path end |