Class: MediaWikiWalker
- Inherits:
-
Object
- Object
- MediaWikiWalker
- Defined in:
- lib/mediacloth/mediawikiwalker.rb
Overview
Default walker to traverse the parse tree.
The walker traverses the entire parse tree and does nothing. To implement some functionality during this process, reimplement parse… methods and don’t forget to call super() to not break the walk.
Current implementations: MediaWikiHTMLGenerator, DebugWalker
Direct Known Subclasses
Instance Method Summary collapse
-
#parse(ast) ⇒ Object
Walks through the AST.
Instance Method Details
#parse(ast) ⇒ Object
Walks through the AST
14 15 16 |
# File 'lib/mediacloth/mediawikiwalker.rb', line 14 def parse(ast) parse_wiki_ast(ast) end |