Class: FormatGraphVizDiGraph
- Inherits:
-
ClWiki::CustomFormatter
- Object
- ClWiki::CustomFormatter
- FormatGraphVizDiGraph
- Defined in:
- lib/cl_wiki/format/format.graphviz.digraph.rb
Class Method Summary collapse
Class Method Details
.format_content(content, page) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/cl_wiki/format/format.graphviz.digraph.rb', line 8 def self.format_content(content, page) content.sub!(/digraph.*\}/m, "<a href=\"dot.rb?fn=#{page.file_full_path_and_name}\"> <img src=\"dot.rb?fn=#{page.file_full_path_and_name}\"> </a>") content end |
.match_re ⇒ Object
4 5 6 |
# File 'lib/cl_wiki/format/format.graphviz.digraph.rb', line 4 def self.match_re /digraph.*\}/m end |