203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
|
# File 'lib/puppet/interface/documentation.rb', line 203
def author(value = nil)
unless value.nil? then
unless value.is_a? String
raise ArgumentError, _('author must be a string; use multiple statements for multiple authors')
end
if value =~ /\n/ then
raise ArgumentError, _('author should be a single line; use multiple statements for multiple authors')
end
@authors.push(Puppet::Interface::DocGen.strip_whitespace(value))
end
@authors.empty? ? nil : @authors.join("\n")
end
|