Sha256: f6f22704b25e122f3e568a7e7ed2460604249d462005440e9f628d64273df42a
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
module PuppetStrings::Markdown module TableOfContents def self.render final = "" [PuppetStrings::Markdown::PuppetClasses, PuppetStrings::Markdown::DefinedTypes, PuppetStrings::Markdown::ResourceTypes, PuppetStrings::Markdown::Functions].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-1.2.1 | lib/puppet-strings/markdown/table_of_contents.rb |
puppet-strings-1.2.0 | lib/puppet-strings/markdown/table_of_contents.rb |