Parent Directory | Revision Log
Add str_join function A function to join elements from an array to create a string.
1 | # str_join($array, $sep) |
2 | # -> return a string created by converting each element of the array to |
3 | # a string, separated by $sep |
4 | |
5 | module Puppet::Parser::Functions |
6 | newfunction(:str_join, :type => :rvalue) do |args| |
7 | array = args[0] |
8 | sep = args[1] |
9 | return array.join(sep) |
10 | end |
11 | end |
ViewVC Help | |
Powered by ViewVC 1.1.30 |