Spec-Zone.ru › Homebrew

Class: DeprecatedOption Private

Inherits:
Object
  • Object
  • DeprecatedOption
show all
Defined in:
options/deprecated_option.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

A deprecated formula option.

Instance Attribute Summary collapse

  • #current ⇒ String readonly private
  • #old ⇒ String readonly private

Instance Method Summary collapse

  • #current_flag ⇒ String private
  • #initialize(old, current) ⇒ void constructor private
  • #old_flag ⇒ String private

Constructor Details

#initialize(old, current) ⇒ 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:

  • old (String)
  • current (String)


10
11
12
13
# File 'options/deprecated_option.rb', line 10

def initialize(old, current)
  @old = old
  @current = current
end

Instance Attribute Details

#current ⇒ String (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:

  • (String)


7
8
9
# File 'options/deprecated_option.rb', line 7

def current
  @current
end

#old ⇒ String (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:

  • (String)


7
8
9
# File 'options/deprecated_option.rb', line 7

def old
  @old
end

Instance Method Details

#current_flag ⇒ String

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:

  • (String)


21
22
23
# File 'options/deprecated_option.rb', line 21

def current_flag
  "--#{current}"
end

#old_flag ⇒ String

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:

  • (String)


16
17
18
# File 'options/deprecated_option.rb', line 16

def old_flag
  "--#{old}"
end

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

Spec-Zone.ru

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