diff options
Diffstat (limited to 'join.rb')
-rw-r--r-- | join.rb | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -19,6 +19,12 @@ module Puppet::Parser::Functions suffix = arguments[1] if arguments[1] + if suffix + unless suffix.is_a?(String) + raise(Puppet::ParseError, 'join(): Requires string to work with') + end + end + result = suffix ? array.join(suffix) : array.join return result |