projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
lib
/
puppet
/
parser
/
functions
/
suffix.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/suffix.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/suffix.rb
index
72ff08d
..
643d722
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/suffix.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/suffix.rb
@@
-3,19
+3,22
@@
#
module Puppet::Parser::Functions
newfunction(:suffix, :type => :rvalue, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:suffix, :type => :rvalue, :doc => <<-DOC
- This function applies a suffix to all elements in an array, or to the keys
- in a hash.
+ @summary
+ This function applies a suffix to all elements in an array, or to the keys
+ in a hash.
- *Examples:*
+ @return
+ Array or Hash with updated elements containing the passed suffix
- suffix(['a','b','c'], 'p')
+ @example **Usage**
- Will return: ['ap','bp','cp']
+ suffix(['a','b','c'], 'p')
+ Will return: ['ap','bp','cp']
-
Note
that since Puppet 4.0.0 the general way to modify values is in array is by using the map
+
> *Note:*
that since Puppet 4.0.0 the general way to modify values is in array is by using the map
function in Puppet. This example does the same as the example above:
function in Puppet. This example does the same as the example above:
- ['a', 'b', 'c'].map |$x| { "${x}p" }
+ ```['a', 'b', 'c'].map |$x| { "${x}p" }```
DOC
) do |arguments|
DOC
) do |arguments|