Sha256: 049fc25753103de4add619ac150bbf8837b2ad708b14d145521c26e2d37f09f7

Contents?: true

Size: 130 Bytes

Versions: 2

Compression:

Stored size: 130 Bytes

Contents

class String
  def remove_newlines
    self.gsub("\n", "")
  end

  def escape_double_quotes
    self.gsub('"', "\\\"")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
service_mock-0.4 lib/service_mock/core_ext/string.rb
service_mock-0.3.1 lib/service_mock/core_ext/string.rb