Sha256: 3e6cd1c0928ee564ff7841a5800002a490de34d9f2f83153400daefe67349ac5
Contents?: true
Size: 140 Bytes
Versions: 2
Compression:
Stored size: 140 Bytes
Contents
class String def squish! gsub!(/\A[[:space:]]+/, '') gsub!(/[[:space:]]+\z/, '') gsub!(/[[:space:]]+/, ' ') self end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
most_related-0.0.3 | spec/support/string.rb |
most_related-0.0.2 | spec/support/string.rb |