Exception: MacOSVersion::Error Private
- 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
-
#version ⇒ String, ...
readonly
private
Instance Method Summary collapse
-
#initialize(version) ⇒ Error
constructor
private
A new instance of Error.
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.
15 16 17 18 |
# File 'macos_version.rb', line 15 def initialize(version) @version = version super "unknown or unsupported macOS version: #{version.inspect}" end |
Instance Attribute Details
#version ⇒ String, ... (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.
13 14 15 |
# File 'macos_version.rb', line 13 def version @version end |