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