summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reference/function.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-07 20:07:13 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-07 20:07:13 +0000
commita040bd48b1e36e9e6e363896fe98e093b3b19bd0 (patch)
tree64ea7f1b0111962112824e886f87a1c09e23f5b0 /lib/puppet/reference/function.rb
parentf42a755cc2e4bc77880dec9571ccd11f33f2737f (diff)
downloadpuppet-a040bd48b1e36e9e6e363896fe98e093b3b19bd0.tar.gz
puppet-a040bd48b1e36e9e6e363896fe98e093b3b19bd0.tar.xz
puppet-a040bd48b1e36e9e6e363896fe98e093b3b19bd0.zip
First run at moving references to lib/puppet instead of puppetdoc
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2477 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/reference/function.rb')
-rw-r--r--lib/puppet/reference/function.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/puppet/reference/function.rb b/lib/puppet/reference/function.rb
new file mode 100644
index 000000000..5c62c88d5
--- /dev/null
+++ b/lib/puppet/reference/function.rb
@@ -0,0 +1,13 @@
+function = Puppet::Util::Reference.newreference :function, :doc => "All functions available in the parser" do
+ Puppet::Parser::Functions.functiondocs
+end
+function.header = "
+There are two types of functions in Puppet: Statements and rvalues.
+Statements stand on their own and do not return arguments; they are used for
+performing stand-alone work like importing. Rvalues return values and can
+only be used in a statement requiring a value, such as an assignment or a case
+statement.
+
+Here are the functions available in Puppet:
+
+"