1 #A function to eventually replace the old size() function for stdlib - The original size function did not handle Puppets new type capabilities, so this function is a Puppet 4 compatible solution.
2 Puppet::Functions.create_function(:length) do
4 param 'Variant[String,Array,Hash]', :value
9 elsif value.is_a?(Array) || value.is_a?(Hash)