Module: FormulaClassUnavailableErrorModule Private

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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Shared methods for formula class errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_listObject (readonly)

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.


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

def class_list
  @class_list
end

#class_nameObject (readonly)

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.


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

def class_name
  @class_name
end

#pathObject (readonly)

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.


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

def path
  @path
end

Instance Method Details

#to_sObject

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.


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

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