module Regexp::Syntax
def self.new(name)
the given syntax version name. The special names 'any' and '*' return an
Loads and instantiates an instance of the syntax specification class for
def self.new(name) return Regexp::Syntax::Any.new if ['*', 'any'].include?( name.to_s ) raise UnknownSyntaxNameError.new(name) unless supported?(name) version_class(name).new end