summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/README.markdown
blob: 15d7495d2cad1d44f484b5d1c0b70a27da88ee86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Functions
=========

Define functions in this directory.

File paths should match the function name; for example, a function
`myfunction`, defined like this:

    Puppet::Parser::Functions::newfunction(
        :myfunction,
        :type => :statement,
        :doc => "Documentation here."
    ) do |vals|
        # ...
    end

Should be found in `myfunction.rb` in this directory.