Sha256: 00fb33ddbf1fde4de4c855b6bc52aa90e0297799b5030719b43f7eab77dc65fa
Contents?: true
Size: 555 Bytes
Versions: 6
Compression:
Stored size: 555 Bytes
Contents
module Puppet::Parser::Functions newfunction(:sprintf, :type => :rvalue, :doc => "Perform printf-style formatting of text. The first parameter is format string describing how the rest of the parameters should be formatted. See the documentation for the ``Kernel::sprintf()`` function in Ruby for all the details.") do |args| if args.length < 1 raise Puppet::ParseError, 'sprintf() needs at least one argument' end fmt = args.shift() return sprintf(fmt, *args) end end
Version data entries
6 entries across 6 versions & 1 rubygems