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 " +
12 "given (#{arguments.size} for 1)") if arguments.size < 1
16 unless hash.is_a?(Hash)
17 raise(Puppet::ParseError, 'keys(): Requires hash to work with')
26 # vim: set ts=2 sw=2 et :