aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/slash_escape.rb
blob: 04d3b95e5daa8f49930fe4bbcaa890d0211c96bc (plain)
1
2
3
4
5
6
7
# escape slashes in a String
module Puppet::Parser::Functions
	newfunction(:slash_escape, :type => :rvalue) do |args|
		args[0].gsub(/\//, '\\/')
	end
end