4 module Puppet::Parser::Functions
5 newfunction(:is_hash, :type => :rvalue, :doc => <<-DOC
6 Returns true if the variable passed to this function is a hash.
10 raise(Puppet::ParseError, "is_hash(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.size != 1
14 result = type.is_a?(Hash)
20 # vim: set ts=2 sw=2 et :