Spec-Zone.ru › Homebrew

Module: OS::Mac::Superenv::ClassMethods Private

Defined in:
extend/os/mac/extend/ENV/super.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

  • #bin ⇒ ::Pathname? private
  • #shims_path ⇒ ::Pathname private

Instance Method Details

#bin ⇒ ::Pathname?

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:

  • (::Pathname, nil)


21
22
23
24
25
# File 'extend/os/mac/extend/ENV/super.rb', line 21

def bin
  return unless ::DevelopmentTools.installed?

  shims_path.realpath
end

#shims_path ⇒ ::Pathname

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:

  • (::Pathname)


16
17
18
# File 'extend/os/mac/extend/ENV/super.rb', line 16

def shims_path
  HOMEBREW_SHIMS_PATH/"mac/super"
end

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

Spec-Zone.ru

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