method

add_special

ruby latest stable - Class: RDoc::Markup::AttributeManager

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

add_special(pattern, name)
public

Adds a special handler for pattern with name. A simple URL handler would be:

@am.add_special(/((https?:)\S+\w)/, :HYPERLINK)