Sha256: 99a652d9785b31d90c41a6e18a7cae161b85f102e7e6bb93fa1faa4b27f9a7fe
Contents?: true
Size: 491 Bytes
Versions: 19
Compression:
Stored size: 491 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| raise Puppet::ParseError, 'sprintf() needs at least one argument' if args.length < 1 fmt = args.shift return sprintf(fmt, *args) end end
Version data entries
19 entries across 19 versions & 1 rubygems