X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Ffunctions%2Ftype_of.rb;h=e7456593246a5d454bf472d0c78a75831db972a8;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hp=01f1f49ef38e42360b4885e9407f36473a04314b;hpb=6963202b4b62c2816655ac9532521b018fdf83bd;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/lib/puppet/functions/type_of.rb b/3rdparty/modules/stdlib/lib/puppet/functions/type_of.rb index 01f1f49ef..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 @@ -10,9 +11,13 @@ # See the documentation for "The Puppet Type System" for more information about types. # See the `assert_type()` function for flexible ways to assert the type of a value. # -# The built-in type() function in puppet is generally preferred over this function +# 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