CHips L MINI SHELL

CHips L pro

Current Path : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/functions/
Upload File :
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

Copyright 2K16 - 2K18 Indonesian Hacker Rulez