Class: ClWiki::FormatGraphVizDiGraph

Inherits:
CustomFormatter show all
Defined in:
lib/cl_wiki/format_graphviz_di_graph.rb

Class Method Summary collapse

Class Method Details

.format_content(content, page) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/cl_wiki/format_graphviz_di_graph.rb', line 9

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_reObject



5
6
7
# File 'lib/cl_wiki/format_graphviz_di_graph.rb', line 5

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