Module: FormulaClassUnavailableErrorModule

Included in:
FormulaClassUnavailableError, TapFormulaClassUnavailableError
Defined in:
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



83
84
85
# File 'Library/Homebrew/exceptions.rb', line 83

def class_list
  @class_list
end

#class_nameObject (readonly)

Returns the value of attribute class_name



82
83
84
# File 'Library/Homebrew/exceptions.rb', line 82

def class_name
  @class_name
end

#pathObject (readonly)

Returns the value of attribute path



81
82
83
# File 'Library/Homebrew/exceptions.rb', line 81

def path
  @path
end

Instance Method Details

#to_sObject



85
86
87
88
89
90
# File 'Library/Homebrew/exceptions.rb', line 85

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