Add note about Version
constructor.
This commit is contained in:
parent
ff71668f0a
commit
4bbf120630
@ -117,6 +117,7 @@ module OS
|
||||
alias requires_popcnt? requires_nehalem_cpu?
|
||||
|
||||
# Represents the absence of a version.
|
||||
# NOTE: Constructor needs to called with an arbitrary macOS-like version which is then set to `nil`.
|
||||
NULL = Version.new("10.0").tap { |v| v.instance_variable_set(:@version, nil) }.freeze
|
||||
end
|
||||
end
|
||||
|
@ -736,5 +736,6 @@ class Version
|
||||
end
|
||||
|
||||
# Represents the absence of a version.
|
||||
# NOTE: Constructor needs to called with an arbitrary non-empty version which is then set to `nil`.
|
||||
NULL = Version.new("NULL").tap { |v| v.instance_variable_set(:@version, nil) }.freeze
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user