Sha256: 8c5f0ac0f8328ae285d3f416d16fdb46ca298b9c87e94429f9bdb10ad4792696
Contents?: true
Size: 229 Bytes
Versions: 2
Compression:
Stored size: 229 Bytes
Contents
class String def remove_newlines self.gsub("\n", "") end def escape_double_quotes self.gsub('"', "\\\"") end def remove_whitespace self.gsub("\n", "").gsub("\r", "").gsub("\t", "").gsub(" ", "") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
service_mock-0.5.1 | lib/service_mock/core_ext/string.rb |
service_mock-0.5 | lib/service_mock/core_ext/string.rb |