method
register
Ruby latest stable (v2_5_5)
-
0 notes -
Class: PreProcess
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180 (0)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (19)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
register(directive, &block)
public
Registers directive as one handled by RDoc. If a block is given the directive will be replaced by the result of the block, otherwise the directive will be removed from the processed text.
The block will be called with the directive name and the directive parameter:
RDoc::Markup::PreProcess.register 'my-directive' do |directive, param| # replace text, etc. end