Class: FormatGraphVizDiGraph

Inherits:
ClWiki::CustomFormatter show all
Defined in:
lib/cl_wiki/format/format.graphviz.digraph.rb

Class Method Summary collapse

Class Method Details

.format_content(content, page) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/cl_wiki/format/format.graphviz.digraph.rb', line 6

def FormatGraphVizDiGraph.format_content(content, page)
  content.sub!(/digraph.*\}/m,
    '<a href="dot.rb?fn=' + page.fileFullPathAndName + '">' +
    '<img src="dot.rb?fn=' + page.fileFullPathAndName + '">' +
    '</a>'
  )
  content
end

.match_reObject



2
3
4
# File 'lib/cl_wiki/format/format.graphviz.digraph.rb', line 2

def FormatGraphVizDiGraph.match_re
  /digraph.*\}/m
end