Class: Formulary::AliasLoader

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

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(alias_path) ⇒ AliasLoader

Returns a new instance of AliasLoader



143
144
145
146
147
148
# File 'Library/Homebrew/formulary.rb', line 143

def initialize(alias_path)
  path = alias_path.resolved_path
  name = path.basename(".rb").to_s
  super name, path
  @alias_path = alias_path.to_s
end