Spec-Zone.ru › Homebrew

Exception: LegacyDSLError

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

Instance Attribute Summary collapse

  • #attr ⇒ Symbol readonly private

Instance Method Summary collapse

  • #initialize(attr, value) ⇒ void constructor private

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

#attr ⇒ Symbol (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:

  • (Symbol)


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

def attr
  @attr
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/LegacyDSLError.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API