blob: de97bfb5ac977a272ee6ccbf9be02097c2e79221 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# str_join($array, $sep)
# -> return a string created by converting each element of the array to
# a string, separated by $sep
module Puppet::Parser::Functions
newfunction(:str_join, :type => :rvalue) do |args|
array = args[0]
sep = args[1]
return array.join(sep)
end
end
|