Server IP : 111.118.215.189 / Your IP : 18.216.95.250 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/ruby/vendor_ruby/puppet/parser/functions/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
Puppet::Parser::Functions::newfunction( :with, :type => :rvalue, :arity => -1, :doc => <<-DOC Call a lambda code block with the given arguments. Since the parameters of the lambda are local to the lambda's scope, this can be used to create private sections of logic in a class so that the variables are not visible outside of the class. Example: # notices the array [1, 2, 'foo'] with(1, 2, 'foo') |$x, $y, $z| { notice [$x, $y, $z] } - since 3.7.0 - note requires future parser DOC ) do |args| function_fail(["with() is only available when parser/evaluator future is in effect"]) end