add documentation comment

This commit is contained in:
kristi
2012-05-14 02:01:06 -07:00
parent eb92e4413a
commit 82ccb0cedb
+5
View File
@@ -72,6 +72,11 @@ module Gollum
data
end
# Inserts header anchors and creates TOC
#
# doc - Nokogiri parsed document
#
# Returns doc Document and toc String
def process_headers(doc)
toc = nil
doc.css('h1,h2,h3,h4,h5,h6').each do |h|