tag:blogger.com,1999:blog-1966164648581347177.post2996691179320725886..comments2024-02-27T00:13:27.308-08:00Comments on On the Bleeding Edge of Puppet: The Puppet 4x Function API - part 2Henrik Lindberghttp://www.blogger.com/profile/18131140901733897033noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1966164648581347177.post-16821434598404097302015-02-12T14:22:04.100-08:002015-02-12T14:22:04.100-08:00Post updated with the latest changes to the 4x fun...Post updated with the latest changes to the 4x function API. The Puppet Language lambda/block is now given the same way as when coding in Ruby - the method gets a Proc either implicitly (and yields to it), or declares it with &block, and calls the block block.call(). This greatly simplifies testing since Ruby Procs can be used directly when writing rspec tests.Anonymousnoreply@blogger.com