5 module Puppet::Parser::Functions
6 newfunction(:is_array, :type => :rvalue, :doc => <<-EOS
7 Returns true if the variable passed to this function is an array.
11 raise(Puppet::ParseError, "is_array(): Wrong number of arguments " +
12 "given (#{arguments.size} for 1)") if arguments.size < 1
16 result = type.is_a?(Array)
22 # vim: set ts=2 sw=2 et :