Sha256: 9e1c5200b122c007834905fe6205aef0b98fac27b4a659894786b3d051bd4cd2
Contents?: true
Size: 830 Bytes
Versions: 9
Compression:
Stored size: 830 Bytes
Contents
require_relative 'puppet_class' module PuppetStrings::Markdown module PuppetClasses # @return [Array] list of classes def self.in_classes arr = YARD::Registry.all(:puppet_class).sort_by!(&:name).map!(&:to_hash) arr.map! { |a| PuppetStrings::Markdown::PuppetClass.new(a) } end def self.contains_private? result = false unless in_classes.nil? in_classes.find { |klass| klass.private? }.nil? ? false : true end end def self.render final = in_classes.length > 0 ? "## Classes\n\n" : "" in_classes.each do |klass| final << klass.render unless klass.private? end final end def self.toc_info final = ["Classes"] in_classes.each do |klass| final.push(klass.toc_info) end final end end end
Version data entries
9 entries across 9 versions & 1 rubygems