Exception: LegacyDSLError
Instance Attribute Summary collapse
-
#attr ⇒ Object
readonly
private
Returns the value of attribute attr.
Instance Method Summary collapse
-
#initialize(attr, value) ⇒ LegacyDSLError
constructor
A new instance of LegacyDSLError.
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
#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.
Returns the value of attribute attr.
81 82 83 |
# File 'exceptions.rb', line 81 def attr @attr end |