summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/upcase.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/upcase.rb')
-rw-r--r--lib/puppet/parser/functions/upcase.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/upcase.rb b/lib/puppet/parser/functions/upcase.rb
index 8a9769d..fe6cadc 100644
--- a/lib/puppet/parser/functions/upcase.rb
+++ b/lib/puppet/parser/functions/upcase.rb
@@ -4,6 +4,15 @@
module Puppet::Parser::Functions
newfunction(:upcase, :type => :rvalue, :doc => <<-EOS
+Converts a string or an array of strings to uppercase.
+
+*Examples:*
+
+ upcase("abcd")
+
+Will return:
+
+ ASDF
EOS
) do |arguments|