X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Ffunctions%2Ftype_of.rb;h=e7456593246a5d454bf472d0c78a75831db972a8;hp=5bed6d5a5c3c72208818940b5329fef629b87f9d;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/functions/type_of.rb b/3rdparty/modules/stdlib/lib/puppet/functions/type_of.rb index 5bed6d5a5..e74565932 100644 --- a/3rdparty/modules/stdlib/lib/puppet/functions/type_of.rb +++ b/3rdparty/modules/stdlib/lib/puppet/functions/type_of.rb @@ -1,4 +1,5 @@ -# Returns the type when passed a value. +# @summary +# Returns the type of the passed value. # # @example how to compare values' types # # compare the types of two values @@ -13,6 +14,10 @@ # The built-in type() function in puppet is generally preferred over this function # this function is provided for backwards compatibility. Puppet::Functions.create_function(:type_of) do + # @return [String] + # the type of the passed value + # + # @param value def type_of(value) Puppet::Pops::Types::TypeCalculator.infer_set(value) end