Sha256: ef71cf6e91d6e062fbb69e0b0458751c6ac575da03f3f75cd22d92a0f32d8051
Contents?: true
Size: 709 Bytes
Versions: 2
Compression:
Stored size: 709 Bytes
Contents
module PuppetStrings::Markdown module TableOfContents def self.render final = "## Table of Contents\n\n" [PuppetStrings::Markdown::PuppetClasses, PuppetStrings::Markdown::DefinedTypes, PuppetStrings::Markdown::ResourceTypes, PuppetStrings::Markdown::Functions, PuppetStrings::Markdown::PuppetTasks, PuppetStrings::Markdown::PuppetPlans].each do |r| toc = r.toc_info group_name = toc.shift group = toc priv = r.contains_private? template = File.join(File.dirname(__FILE__),"templates/table_of_contents.erb") final << ERB.new(File.read(template), nil, '-').result(binding) end final end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-strings-2.2.0 | lib/puppet-strings/markdown/table_of_contents.rb |
puppet-strings-2.1.0 | lib/puppet-strings/markdown/table_of_contents.rb |