Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # @name : downcase
- # @desc : puppet implementation of ruby's downcase
- # @info : nil
- module Puppet::Parser::Functions
- newfunction(:downcase, :type => :rvalue) do |args|
- if args[0].is_a?(String)
- args[0].downcase
- end
- end
- end
Add Comment
Please, Sign In to add comment