Exception: LegacyDSLError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Parameters:

  • attr (Symbol)
  • value (T.untyped)


103
104
105
106
# File 'exceptions.rb', line 103

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

Instance Attribute Details

#attrSymbol (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:



100
101
102
# File 'exceptions.rb', line 100

def attr
  @attr
end