module Regexp::Syntax
def version_class(version)
def version_class(version) version =~ VERSION_REGEXP || raise(InvalidVersionNameError, version) version_const_name = version_const_name(version) const_get(version_const_name) || raise(UnknownSyntaxNameError, version) end