Exception: LegacyDSLError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attr, value) ⇒ LegacyDSLError

Returns a new instance of LegacyDSLError.



83
84
85
86
# File 'exceptions.rb', line 83

def initialize(attr, value)
  @attr = attr
  super "A legacy DSL was used: #{attr} (#{value.inspect})"
end

Instance Attribute Details

#attrObject (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.

Returns the value of attribute attr.



81
82
83
# File 'exceptions.rb', line 81

def attr
  @attr
end