Puppet Function: mco_array_to_string
- Defined in:
- lib/puppet/parser/functions/mco_array_to_string.rb
- Function type:
- Ruby 3.x API
Overview
vim: set sw=2 sts=2 et tw=80 :
3 4 5 6 7 8 9 |
# File 'lib/puppet/parser/functions/mco_array_to_string.rb', line 3 Puppet::Parser::Functions.newfunction(:mco_array_to_string, :type => :rvalue) do |args| unless args[0].is_a? Array raise ArgumentError, "Expected an array, but got a #{args[0].class}" end args[0].collect(&:to_s) end |