@api private
# File lib/semantic_puppet/version_range.rb, line 598 def initialize(version) @version = version end
# File lib/semantic_puppet/version_range.rb, line 602 def eql?(other) super && @version.eql?(other.version) end
# File lib/semantic_puppet/version_range.rb, line 606 def hash @class.hash ^ @version.hash end
Checks if this matcher accepts a prerelease with the same major, minor, patch triple as the given version
# File lib/semantic_puppet/version_range.rb, line 611 def test_prerelease?(version) !@version.stable? && @version.major == version.major && @version.minor == version.minor && @version.patch == version.patch end