Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/functions/size.rb
# The same as length() - returns the size of an Array, Hash, String, or Binary value.
#
# @since 6.0.0 - also supporting Binary
#
Puppet::Functions.create_function(:size) do
  dispatch :generic_size do
    param 'Variant[Collection, String, Binary]', :arg
  end


  def generic_size(arg)
    call_function('length', arg)
  end

end
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!