4 module Puppet::Parser::Functions
5 newfunction(:type, :type => :rvalue, :doc => <<-DOC
7 **DEPRECATED:** This function will cease to function on Puppet 4;
8 please use type3x() before upgrading to Puppet 4 for backwards-compatibility, or migrate to the new parser's typing system.
10 @return the type when passed a value. Type can be one of:
21 warning("type() DEPRECATED: This function will cease to function on Puppet 4; please use type3x() before upgrading to puppet 4 for backwards-compatibility, or migrate to the new parser's typing system.") # rubocop:disable Metrics/LineLength : Cannot reduce line length
22 unless Puppet::Parser::Functions.autoloader.loaded?(:type3x)
23 Puppet::Parser::Functions.autoloader.load(:type3x)
29 # vim: set ts=2 sw=2 et :