tag:blogger.com,1999:blog-1966164648581347177.post2996691179320725886..comments2017-07-06T16:27:47.573-07:00Comments on On the Bleeding Edge of Puppet: The Puppet 4x Function API - part 2Henrik Lindberghttp://www.blogger.com/profile/12363037260456250711noreply@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 &amp;block, and calls the block block.call(). This greatly simplifies testing since Ruby Procs can be used directly when writing rspec tests.Henrik Lindberghttps://www.blogger.com/profile/12363037260456250711noreply@blogger.com