Class: OS::Mac::SDK Private

Inherits:
Object
  • Object
show all
Defined in:
Library/Homebrew/os/mac/sdk.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class representing a macOS SDK.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version, path, source) ⇒ SDK

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of SDK.


13
14
15
16
17
# File 'Library/Homebrew/os/mac/sdk.rb', line 13

def initialize(version, path, source)
  @version = OS::Mac::Version.new version
  @path = Pathname.new(path)
  @source = source
end

Instance Attribute Details

#pathObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


11
12
13
# File 'Library/Homebrew/os/mac/sdk.rb', line 11

def path
  @path
end

#sourceObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


11
12
13
# File 'Library/Homebrew/os/mac/sdk.rb', line 11

def source
  @source
end

#versionObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


11
12
13
# File 'Library/Homebrew/os/mac/sdk.rb', line 11

def version
  @version
end