Spec-Zone.ru › Homebrew

Module: OnSystem::MacOSAndLinux

Included in:
Cask::DSL, Formula, Formula, Homebrew::Service, PourBottleCheck, Resource, SoftwareSpec
Defined in:
on_system.rb,
on_system.rbi

Class Method Summary collapse

  • .included(base) ⇒ void private

Instance Method Summary collapse

  • #on_arch_conditional(arm: nil, intel: nil) ⇒ String? private
  • #on_macos(&block) ⇒ T.type_parameter(:U) private
  • #on_system_conditional(macos: nil, linux: nil) ⇒ T.type_parameter(:U) private

Class Method Details

.included(base) ⇒ 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.

This method returns an undefined value.

Parameters:

  • base (T::Class[T.anything])


167
168
169
170
171
# File 'on_system.rb', line 167

def self.included(base)
  OnSystem.setup_arch_methods(base)
  OnSystem.setup_base_os_methods(base)
  OnSystem.setup_macos_methods(base)
end

Instance Method Details

#on_arch_conditional(arm: nil, intel: nil) ⇒ 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.

Parameters:

  • arm (String, nil) (defaults to: nil)
  • intel (String, nil) (defaults to: nil)

Returns:

  • (String, nil)


25
# File 'on_system.rbi', line 25

def on_arch_conditional(arm: nil, intel: nil); end

#on_macos(&block) ⇒ T.type_parameter(:U)

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:

  • block (T.proc.returns(T.type_parameter(:U)))

Returns:

  • (T.type_parameter(:U))


22
# File 'on_system.rbi', line 22

def on_macos(&block); end

#on_system_conditional(macos: nil, linux: nil) ⇒ T.type_parameter(:U)

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:

  • macos (T.all(T.type_parameter(:U), T.nilable(T.any(T::Array[T.any(String, Pathname)], String, Pathname)))) (defaults to: nil)
  • linux (T.all(T.type_parameter(:U), T.nilable(T.any(T::Array[T.any(String, Pathname)], String, Pathname)))) (defaults to: nil)

Returns:

  • (T.type_parameter(:U))


15
# File 'on_system.rbi', line 15

def on_system_conditional(macos: nil, linux: nil); end

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

Spec-Zone.ru

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