Method: Puppet::Util::Docs#doc
- Defined in:
- lib/puppet/util/docs.rb
#doc ⇒ Object
Generate the full doc string.
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/puppet/util/docs.rb', line 22 def doc extra = methods.find_all { |m| m.to_s =~ /^dochook_.+/ }.sort.filter_map { |m| send(m) }.collect { |r| "* #{r}" }.join("\n") if @doc scrub(@doc) + (extra.empty? ? '' : "\n\n#{extra}") else extra end end |