Sha256: 6edcbf36c6baa42f688f1f621b14a75cd48645951c4e0030fbce95698e814e26

Contents?: true

Size: 87 Bytes

Versions: 15

Compression:

Stored size: 87 Bytes

Contents

class String
  def escape_double_quotes
    self.gsub(/([^\\])"/, "\\1\\\"")
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
babelyoda-2.1.19 lib/babelyoda/string.rb
babelyoda-2.1.18 lib/babelyoda/string.rb
babelyoda-2.1.17 lib/babelyoda/string.rb
babelyoda-2.1.16 lib/babelyoda/string.rb
babelyoda-2.1.15 lib/babelyoda/string.rb
babelyoda-2.1.14 lib/babelyoda/string.rb
babelyoda-2.1.13 lib/babelyoda/string.rb
babelyoda-2.1.12 lib/babelyoda/string.rb
babelyoda-2.1.11 lib/babelyoda/string.rb
babelyoda-2.1.10 lib/babelyoda/string.rb
babelyoda-2.1.9 lib/babelyoda/string.rb
babelyoda-2.1.8 lib/babelyoda/string.rb
babelyoda-2.1.7 lib/babelyoda/string.rb
babelyoda-2.1.6 lib/babelyoda/string.rb
babelyoda-2.1.5 lib/babelyoda/string.rb