5 module Puppet::Parser::Functions
6 newfunction(:is_string, :type => :rvalue, :doc => <<-EOS
7 Returns true if the variable passed to this function is a string.
11 raise(Puppet::ParseError, "is_string(): Wrong number of arguments " +
12 "given (#{arguments.size} for 1)") if arguments.size < 1
16 result = type.is_a?(String)
18 if result and (type == type.to_f.to_s or type == type.to_i.to_s) then
26 # vim: set ts=2 sw=2 et :