Guest User

Untitled

a guest
Jul 11th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # @name : downcase
  2. # @desc : puppet implementation of ruby's downcase
  3. # @info : nil
  4. module Puppet::Parser::Functions
  5. newfunction(:downcase, :type => :rvalue) do |args|
  6. if args[0].is_a?(String)
  7. args[0].downcase
  8. end
  9. end
  10. end
Add Comment
Please, Sign In to add comment