module-common/lib/puppet/parser/functions/strlength.rb

6 lines
129 B
Ruby

module Puppet::Parser::Functions
newfunction(:strlength, :type => :rvalue) do |args|
args[0].to_s.length
end
end