File: func3x.rb

package info (click to toggle)
puppet-strings 4.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,412 kB
  • sloc: ruby: 7,324; makefile: 12
file content (11 lines) | stat: -rw-r--r-- 334 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# An example 3.x function
Puppet::Parser::Functions.newfunction(:func3x, doc: <<~'DOC') do |*args|
   Documentation for an example 3.x function.
   @param param1 [String] The first parameter.
   @param param2 [Integer] The second parameter.
   @return [Undef]
   @example Calling the function.
     func3x('hi', 10)
  DOC
  # ...
end