Flowdock
method

handle

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: PreProcess
handle(text, code_object = nil, &block) public

Look for directives in a chunk of text.

Options that we don’t handle are yielded. If the block returns false the directive is restored to the text. If the block returns nil or no block was given the directive is handled according to the registered directives. If a String was returned the directive is replaced with the string.

If no matching directive was registered the directive is restored to the text.

If code_object is given and the param is set as metadata on the code_object. See RDoc::CodeObject#metadata

Show source
Register or log in to add new notes.