# File lib/riddle/query.rb, line 108 def self.escape(string) string.gsub(ESCAPE_CHARACTERS) { |match| "\\#{match}" } .gsub(ESCAPE_WORDS) { |word| "\\#{word}" } end