Method: Puppet::Parameter.doc
- Defined in:
- lib/puppet/parameter.rb
.doc ⇒ String
Produces a documentation string. If an enumeration of _valid values_ has been defined, it is appended to the documentation for this parameter specified with the desc method.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/puppet/parameter.rb', line 108 def doc @doc ||= "" unless defined?(@addeddocvals) @doc = Puppet::Util::Docs.scrub(@doc) vals = value_collection.doc if vals @doc << "\n\n#{vals}" end features = self.required_features if features @doc << "\n\nRequires features #{features.flatten.collect { |f| f.to_s }.join(" ")}." end @addeddocvals = true end @doc end |