Class: Formulary::AliasLoader Private

Inherits:
FormulaLoader show all
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 a formula from a path to an alias.

Instance Attribute Summary

Attributes inherited from FormulaLoader

#alias_path, #name, #path

Instance Method Summary collapse

Methods inherited from FormulaLoader

#get_formula, #klass

Methods included from Context

current, current=, #debug?, #quiet?, #verbose?, #with_context

Constructor Details

#initialize(alias_path) ⇒ AliasLoader

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 AliasLoader.


193
194
195
196
197
198
# File 'Library/Homebrew/formulary.rb', line 193

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