Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
#
# TODO(Krzysztof Wilczynski): We need to add support for regular expression ...
+# TODO(Krzysztof Wilczynski): Support for strings and hashes too ..
module Puppet::Parser::Functions
newfunction(:count, :type => :rvalue, :doc => <<-EOS
# empty.rb
#
+# TODO(Krzysztof Wilczynski): Support for hashes would be nice too ...
+
module Puppet::Parser::Functions
newfunction(:empty, :type => :rvalue, :doc => <<-EOS
EOS
#
# TODO(Krzysztof Wilczynski): We need to add support for regular expression ...
+# TODO(Krzysztof Wilczynski): Support for strings and hashes too ...
module Puppet::Parser::Functions
newfunction(:includes, :type => :rvalue, :doc => <<-EOS
EOS
) do |arguments|
+ # We support more than one argument but at least one is mandatory ...
raise(Puppet::ParseError, "range(): Wrong number of " +
"arguments given (#{arguments.size} for 1)") if arguments.size < 1