module Regexp::Syntax

def self.new(name)

instance of Syntax::Any.
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