Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/core_extensions/string.rb

Instance Method Summary collapse

Instance Method Details

#trim_allString

Returns a copy of string with all spaces removed.

Returns:

  • (String)

    with all spaces trimmed which includes all leading, trailing and embedded spaces.



5
6
7
# File 'lib/core_extensions/string.rb', line 5

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