Exception: FormulaUnavailableError

Inherits:
FormulaOrCaskUnavailableError show all
Defined in:
Library/Homebrew/exceptions.rb

Overview

Raised when a formula is not available.

Instance Attribute Summary collapse

Attributes inherited from FormulaOrCaskUnavailableError

#name

Instance Method Summary collapse

Methods inherited from FormulaOrCaskUnavailableError

#initialize

Constructor Details

This class inherits a constructor from FormulaOrCaskUnavailableError

Instance Attribute Details

#dependentObject

Returns the value of attribute dependent


96
97
98
# File 'Library/Homebrew/exceptions.rb', line 96

def dependent
  @dependent
end

Instance Method Details

#dependent_sObject


98
99
100
# File 'Library/Homebrew/exceptions.rb', line 98

def dependent_s
  "(dependency of #{dependent})" if dependent && dependent != name
end

#to_sObject


102
103
104
# File 'Library/Homebrew/exceptions.rb', line 102

def to_s
  "No available formula with the name \"#{name}\" #{dependent_s}"
end