summaryrefslogtreecommitdiff
path: root/files/improvements/functions/slash_escape.rb
blob: 70cd892e047d98f87367d01aed531d8f6e82c4d6 (plain)
1
2
3
4
5
6
# escape slashes in a String
module Puppet::Parser::Functions
        newfunction(:slash_escape, :type => :rvalue) do |args|
		args[0].gsub(/\//, '\\/')
	end
end