This commit is contained in:
Douglas Eichelberger 2025-02-17 19:11:48 -08:00
parent bd5ff8b41a
commit 0a8c8e2c50

View File

@ -500,11 +500,6 @@ class Version
@detected_from_url = detected_from_url
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 = T.let(Version.new("NULL").tap { |v| v.instance_variable_set(:@version, nil) }.freeze, Version)
sig { returns(T::Boolean) }
def detected_from_url?
@detected_from_url
@ -771,6 +766,11 @@ 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 = T.let(Version.new("NULL").tap { |v| v.instance_variable_set(:@version, nil) }.freeze, Version)
private
sig { params(first: Integer, second: Integer).returns(Integer) }