lib/json_builder/extensions.rb in json_builder-3.1.1 vs lib/json_builder/extensions.rb in json_builder-3.1.2

- old
+ new

@@ -18,13 +18,13 @@ end private def json_escape - self.gsub(/\n/, '\\n') - .gsub(/\r/, '\\r') - .gsub(/\t/, '\\t') - .gsub(/\f/, '\\f') + self.gsub(/\n/, '\\n'). + gsub(/\r/, '\\r'). + gsub(/\t/, '\\t'). + gsub(/\f/, '\\f') end end class Hash def to_builder