4 module Puppet::Parser::Functions
5 newfunction(:values, :type => :rvalue, :doc => <<-DOC
7 When given a hash this function will return the values of that hash.
20 This example would return: ```[1,2,3]```
23 From Puppet 5.5.0, the compatible function with the same name in Puppet core
24 will be used instead of this function.
29 raise(Puppet::ParseError, "values(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.empty?
33 unless hash.is_a?(Hash)
34 raise(Puppet::ParseError, 'values(): Requires hash to work with')
43 # vim: set ts=2 sw=2 et :