Sha256: 254662d06243ed56432e3edddaf7b3fc8d02800f1c721edb6bb256ca68a3c611
Contents?: true
Size: 227 Bytes
Versions: 3
Compression:
Stored size: 227 Bytes
Contents
class String # Returns a copy of string with all spaces removed. # # @return [String] with all spaces trimmed which includes all leading, trailing and embedded spaces. def trim_all self.gsub(/\s+/, "") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_command_dispatcher-1.2.3 | lib/core_extensions/string.rb |
simple_command_dispatcher-1.2.2 | lib/core_extensions/string.rb |
simple_command_dispatcher-1.2.1 | lib/core_extensions/string.rb |