summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/values.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/values.rb')
-rw-r--r--lib/puppet/parser/functions/values.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/values.rb b/lib/puppet/parser/functions/values.rb
index c1c4a77..1606756 100644
--- a/lib/puppet/parser/functions/values.rb
+++ b/lib/puppet/parser/functions/values.rb
@@ -4,6 +4,20 @@
module Puppet::Parser::Functions
newfunction(:values, :type => :rvalue, :doc => <<-EOS
+When given a hash this function will return the values of that hash.
+
+*Examples:*
+
+ $hash = {
+ 'a' => 1,
+ 'b' => 2,
+ 'c' => 3,
+ }
+ values($hash)
+
+This example would return:
+
+ [1,2,3]
EOS
) do |arguments|