Class: Formulary::FromPathLoader

Inherits:
FormulaLoader show all
Defined in:
Library/Homebrew/formulary.rb

Overview

Loads formulae from disk using a path

Instance Attribute Summary

Attributes inherited from FormulaLoader

#alias_path, #name, #path

Instance Method Summary collapse

Methods inherited from FormulaLoader

#get_formula, #klass

Constructor Details

#initialize(path) ⇒ FromPathLoader

Returns a new instance of FromPathLoader



153
154
155
156
# File 'Library/Homebrew/formulary.rb', line 153

def initialize(path)
  path = Pathname.new(path).expand_path
  super path.basename(".rb").to_s, path
end