Module: Asciidoctor::SyntaxHighlighter::Config

Defined in:
lib/asciidoctor/syntax_highlighter.rb

Instance Method Summary collapse

Instance Method Details

#register_for(*names) ⇒ void

This method returns an undefined value.

Statically register the current class in the registry for the specified names.

Parameters:

  • names

    one or more String or Symbol names with which to register the current class as a syntax highlighter implementation. Symbol arguments are coerced to Strings.



114
115
116
# File 'lib/asciidoctor/syntax_highlighter.rb', line 114

def register_for *names
  SyntaxHighlighter.register self, *(names.map {|name| name.to_s })
end