Exception: FormulaValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
Library/Homebrew/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(formula, attr, value) ⇒ FormulaValidationError



50
51
52
53
54
# File 'Library/Homebrew/exceptions.rb', line 50

def initialize(formula, attr, value)
  @attr = attr
  @formula = formula
  super "invalid attribute for formula '#{formula}': #{attr} (#{value.inspect})"
end

Instance Attribute Details

#attrObject (readonly)

Returns the value of attribute attr



48
49
50
# File 'Library/Homebrew/exceptions.rb', line 48

def attr
  @attr
end

#formulaObject (readonly)

Returns the value of attribute formula



48
49
50
# File 'Library/Homebrew/exceptions.rb', line 48

def formula
  @formula
end