Class: MediaWikiWalker

Inherits:
Object
  • Object
show all
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

MediaWikiHTMLGenerator

Instance Method Summary collapse

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