Spec-Zone.ru › Homebrew

Module: OS::Mac::Bottles::ClassMethods Private

Defined in:
extend/os/mac/utils/bottles.rb

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

Instance Method Summary collapse

  • #tag(tag = nil) ⇒ Utils::Bottles::Tag private

Instance Method Details

#tag(tag = nil) ⇒ Utils::Bottles::Tag

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:

  • tag (Symbol, Utils::Bottles::Tag, nil) (defaults to: nil)

Returns:

  • (Utils::Bottles::Tag)


9
10
11
12
13
14
15
# File 'extend/os/mac/utils/bottles.rb', line 9

def tag(tag = nil)
  if tag.nil?
    Utils::Bottles::Tag.new(system: MacOS.version.to_sym, arch: ::Hardware::CPU.arch)
  else
    super
  end
end

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

Spec-Zone.ru

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