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