Class: OS::Mac::SDK Private

Inherits:
Object
  • Object
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.

/MacOSX(\d+\.\d+)\.sdk$/.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version, path, source) ⇒ SDK

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 a new instance of SDK.



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

def initialize(version, path, source)
  @version = version
  @path = Pathname.new(path)
  @source = source
end

Instance Attribute Details

#pathObject (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.



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

def path
  @path
end

#sourceObject (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.



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

def source
  @source
end

#versionObject (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.



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

def version
  @version
end