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 ⇒ Symbol, String readonly private
- #formula ⇒ String readonly private
Instance Method Summary collapse
- #initialize(formula, attr, value) ⇒ void constructor private
Constructor Details
#initialize(formula, attr, value) ⇒ void
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.
91 92 93 94 95 | # File 'exceptions.rb', line 91 def initialize(formula, attr, value) @attr = attr @formula = formula super "invalid attribute for formula '#{formula}': #{attr} (#{value.inspect})" end |
Instance Attribute Details
#attr ⇒ Symbol, String (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.
85 86 87 | # File 'exceptions.rb', line 85 def attr @attr end |
#formula ⇒ String (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.
88 89 90 | # File 'exceptions.rb', line 88 def formula @formula end |
© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/FormulaValidationError.html