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.



7
8
9
# File 'lib/core_extensions/string.rb', line 7

def trim_all
  gsub(/\s+/, '')
end