method
handle

v1_9_3_392 -
Show latest stable
-
0 notes -
Class: PreProcess
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (28)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (4)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
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