Sha256: a248bc2928acbc9efa4a025cba7e088ce19f778e7ecc21677675443dc26f40cb

Contents?: true

Size: 185 Bytes

Versions: 6

Compression:

Stored size: 185 Bytes

Contents

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

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

  def remove_whitespace
    self.gsub(/\s/, "")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
service_mock-0.9 lib/service_mock/core_ext/string.rb
service_mock-0.8 lib/service_mock/core_ext/string.rb
service_mock-0.7.1 lib/service_mock/core_ext/string.rb
service_mock-0.7 lib/service_mock/core_ext/string.rb
service_mock-0.6 lib/service_mock/core_ext/string.rb
service_mock-0.5.2 lib/service_mock/core_ext/string.rb