# File lib/net/ldap/filter.rb, line 245 def escape(string) string.gsub(ESCAPE_RE) { |char| "\\" + ESCAPES[char] } end