Spec-Zone.ru › Homebrew

Class: OS::Mac::SDK Private

Inherits:
Object
  • Object
  • OS::Mac::SDK
show all
Defined in:
os/mac/sdk.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.

Class representing a macOS SDK.

Constant Summary collapse

VERSIONED_SDK_REGEX =

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

11.x SDKs are explicitly excluded - we want the MacOSX11.sdk symlink instead.

/MacOSX(10\.\d+|\d+)\.sdk$/

Instance Attribute Summary collapse

  • #path ⇒ ::Pathname readonly private
  • #source ⇒ Symbol readonly private
  • #version ⇒ MacOSVersion readonly private

Instance Method Summary collapse

  • #initialize(version, path, source) ⇒ void constructor private

Constructor Details

#initialize(version, path, source) ⇒ 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:

  • version (MacOSVersion)
  • path (String, ::Pathname)
  • source (Symbol)


23
24
25
26
27
# File 'os/mac/sdk.rb', line 23

def initialize(version, path, source)
  @version = version
  @path = T.let(Pathname(path), ::Pathname)
  @source = source
end

Instance Attribute Details

#path ⇒ ::Pathname (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:

  • (::Pathname)


17
18
19
# File 'os/mac/sdk.rb', line 17

def path
  @path
end

#source ⇒ Symbol (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:

  • (Symbol)


20
21
22
# File 'os/mac/sdk.rb', line 20

def source
  @source
end

#version ⇒ MacOSVersion (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:

  • (MacOSVersion)


14
15
16
# File 'os/mac/sdk.rb', line 14

def version
  @version
end

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

Spec-Zone.ru

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