Exception: MacOSVersion::Error Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
macos_version.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.

Raised when a macOS version is unsupported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ Error

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 Error.



13
14
15
16
# File 'macos_version.rb', line 13

def initialize(version)
  @version = version
  super "unknown or unsupported macOS version: #{version.inspect}"
end

Instance Attribute Details

#versionString, ... (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:



11
12
13
# File 'macos_version.rb', line 11

def version
  @version
end