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) ⇒ void constructor private
Constructor Details
#initialize(version) ⇒ 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.
14 15 16 17 | # File 'macos_version.rb', line 14 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.
11 12 13 | # File 'macos_version.rb', line 11 def version @version end |
© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/MacOSVersion/Error.html