Method: CompactData::UTIL.escape_graves

Defined in:
lib/compactdata/util/functions.rb

.escape_graves(str) ⇒ Object



9
10
11
12
13
# File 'lib/compactdata/util/functions.rb', line 9

def self.escape_graves(str)
  return str unless str

  str.gsub(/`/, '~`')
end