Class: Formulary::FromCacheLoader Private

Inherits:
Object
  • Object
show all
Defined in:
formulary.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, _path, alias_path: nil, tap: nil) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Raises:



861
862
863
864
# File 'formulary.rb', line 861

def initialize(name, _path, alias_path: nil, tap: nil)
  Formulary.odeprecated "Formulary::FromCacheLoader.new", "Formulary.from_path for internal source loading"
  raise FormulaUnavailableError, name
end

Class Method Details

.try_new(_ref, from: nil, warn: false) ⇒ nil

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • _ref (String)
  • from (Symbol, nil) (defaults to: nil)
  • warn (Boolean) (defaults to: false)

Returns:

  • (nil)


853
854
855
856
# File 'formulary.rb', line 853

def self.try_new(_ref, from: nil, warn: false)
  Formulary.odeprecated "Formulary::FromCacheLoader.try_new", "Formulary.from_path for internal source loading"
  nil
end