5 module Puppet::Parser::Functions
6 newfunction(:keys, :type => :rvalue, :doc => <<-EOS
7 Returns the keys of a hash as an array.
11 raise(Puppet::ParseError, "keys(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size < 1
15 unless hash.is_a?(Hash)
16 raise(Puppet::ParseError, 'keys(): Requires hash to work with')
25 # vim: set ts=2 sw=2 et :