Sha256: 099c81144bd9b5f4788fb731636730e27adc3d1aff962bb12581a7db7bdff8aa
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.24.8 | lib/puppet/parser/functions/sprintf.rb |