Module: FormulaClassUnavailableErrorModule

Included in:
FormulaClassUnavailableError, TapFormulaClassUnavailableError
Defined in:
brew/Library/Homebrew/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_listObject (readonly)

Returns the value of attribute class_list



87
88
89
# File 'brew/Library/Homebrew/exceptions.rb', line 87

def class_list
  @class_list
end

#class_nameObject (readonly)

Returns the value of attribute class_name



86
87
88
# File 'brew/Library/Homebrew/exceptions.rb', line 86

def class_name
  @class_name
end

#pathObject (readonly)

Returns the value of attribute path



85
86
87
# File 'brew/Library/Homebrew/exceptions.rb', line 85

def path
  @path
end

Instance Method Details

#to_sObject



89
90
91
92
93
94
# File 'brew/Library/Homebrew/exceptions.rb', line 89

def to_s
  s = super
  s += "\nIn formula file: #{path}"
  s += "\nExpected to find class #{class_name}, but #{class_list_s}."
  s
end