Exception: FormulaValidationError Private
- Defined in:
- exceptions.rb
Overview
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.
Raised when an invalid attribute is used in a formula.
Instance Attribute Summary collapse
- #attr ⇒ Object readonly private
- #formula ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(formula, attr, value) ⇒ FormulaValidationError
constructor
private
A new instance of FormulaValidationError.
Constructor Details
#initialize(formula, attr, value) ⇒ FormulaValidationError
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.
Returns a new instance of FormulaValidationError.
71 72 73 74 75 |
# File 'exceptions.rb', line 71 def initialize(formula, attr, value) @attr = attr @formula = formula super "invalid attribute for formula '#{formula}': #{attr} (#{value.inspect})" end |
Instance Attribute Details
#attr ⇒ Object (readonly)
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.
69 70 71 |
# File 'exceptions.rb', line 69 def attr @attr end |
#formula ⇒ Object (readonly)
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.
69 70 71 |
# File 'exceptions.rb', line 69 def formula @formula end |