X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Ffunctions%2Fvalidate_hash.rb;h=5efa25fe74528c93ebb8fc5f5fcdf8aeeb18d2c1;hp=c6a61a4bd2216639e413eb3932c4fd38ae512f59;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/functions/validate_hash.rb b/3rdparty/modules/stdlib/lib/puppet/functions/validate_hash.rb index c6a61a4bd..5efa25fe7 100644 --- a/3rdparty/modules/stdlib/lib/puppet/functions/validate_hash.rb +++ b/3rdparty/modules/stdlib/lib/puppet/functions/validate_hash.rb @@ -1,4 +1,14 @@ +# @summary +# Validate the passed value represents a hash. Puppet::Functions.create_function(:validate_hash) do + # @param scope + # The main value that will be passed to the method + # + # @param args + # Any additional values that are to be passed to the method + # + # @return + # A boolean value (`true` or `false`) returned from the called function. dispatch :deprecation_gen do param 'Any', :scope repeated_param 'Any', :args