puppetlabs-stdlib/spec
Joshua Hoblitt 95cf3fed68 (#19272) Add has_element() function
It is exceptionally difficult to determine if an array contains an element matching a specific value without an iteration or loop construct.

This function is the Puppet equivalent of Array.includes?(foo) in Ruby.  The implementation is a verbatim copy of has_key() with the minor modifications needed to support arrays instead of hashes.
2013-02-14 12:06:21 -07:00
..
functions Add getparam function to get defined resource parameters 2013-01-09 17:51:12 -08:00
monkey_patches puppet-lint cleanup 2012-11-15 10:38:03 -06:00
unit (#19272) Add has_element() function 2013-02-14 12:06:21 -07:00
spec.opts Copied function test scaffolding from puppet. 2011-06-29 12:25:43 +01:00
spec_helper.rb Revert "Revert "Merge branch '2.5.x' into 3.0.x"" 2012-10-25 15:44:14 -07:00
watchr.rb (Maint) Add watchr autotest script 2011-10-10 12:03:57 -07:00