Rename class to Toc

This commit is contained in:
kristi
2012-05-09 12:18:24 -07:00
parent 75c02475be
commit bb417c6975
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ module Precious
@content = @page.formatted_data do
|doc|
# Insert anchors for table of contents
toc = Gollum::Toc_gen.new doc
toc = Gollum::Toc.new doc
if (toc_content = toc.generate)
toc.insert_anchors
@toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
@@ -211,7 +211,7 @@ module Precious
@content = page.formatted_data do
|doc|
# Insert anchors for table of contents
toc = Gollum::Toc_gen.new doc
toc = Gollum::Toc.new doc
if (toc_content = toc.generate)
toc.insert_anchors
@toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
+1 -1
View File
@@ -1,5 +1,5 @@
module Gollum
class Toc_gen
class Toc
attr_accessor :header_tags
NODE_CONTENT = 0