Spec-Zone.ru › Homebrew

Class: PypiPackages

Inherits:
Object
  • Object
  • PypiPackages
show all
Defined in:
pypi_packages.rb

Overview

This class is part of an internal API. This class may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Helper class for pypi_packages DSL.

Instance Attribute Summary collapse

  • #dependencies ⇒ Array<String> readonly private
  • #exclude_packages ⇒ Array<String> readonly private
  • #extra_packages ⇒ Array<String> readonly private
  • #package_name ⇒ String? readonly private

Instance Method Summary collapse

  • #initialize(package_name: nil, extra_packages: [], exclude_packages: [], dependencies: []) ⇒ void constructor private

Constructor Details

#initialize(package_name: nil, extra_packages: [], exclude_packages: [], dependencies: []) ⇒ 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:

  • package_name (String, nil) (defaults to: nil)
  • extra_packages (Array<String>) (defaults to: [])
  • exclude_packages (Array<String>) (defaults to: [])
  • dependencies (Array<String>) (defaults to: [])


27
28
29
30
31
32
33
34
35
36
37
# File 'pypi_packages.rb', line 27

def initialize(
  package_name: nil,
  extra_packages: [],
  exclude_packages: [],
  dependencies: []
)
  @package_name = package_name
  @extra_packages = extra_packages
  @exclude_packages = exclude_packages
  @dependencies = dependencies
end

Instance Attribute Details

#dependencies ⇒ Array<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:

  • (Array<String>)


17
18
19
# File 'pypi_packages.rb', line 17

def dependencies
  @dependencies
end

#exclude_packages ⇒ Array<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:

  • (Array<String>)


14
15
16
# File 'pypi_packages.rb', line 14

def exclude_packages
  @exclude_packages
end

#extra_packages ⇒ Array<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:

  • (Array<String>)


11
12
13
# File 'pypi_packages.rb', line 11

def extra_packages
  @extra_packages
end

#package_name ⇒ 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, nil)


8
9
10
# File 'pypi_packages.rb', line 8

def package_name
  @package_name
end

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

Spec-Zone.ru

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