puppet-strings/spec/unit/puppetx/yardoc/yard/examples/puppet4_function.rb

8 lines
131 B
Ruby

require 'puppet'
Puppet::Functions.create_function(:puppet4_function) do
def puppet4_function(x,y)
x >= y ? x : y
end
end