Class: Formulary::NullLoader

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

Instance Attribute Summary

Attributes inherited from FormulaLoader

#alias_path, #name, #path

Instance Method Summary collapse

Methods inherited from FormulaLoader

#klass

Constructor Details

#initialize(name) ⇒ NullLoader

Returns a new instance of NullLoader



281
282
283
# File 'brew/Library/Homebrew/formulary.rb', line 281

def initialize(name)
  super name, Formulary.core_path(name)
end

Instance Method Details

#get_formulaObject



285
286
287
# File 'brew/Library/Homebrew/formulary.rb', line 285

def get_formula(*)
  raise FormulaUnavailableError, name
end