class String
Public Instance Methods
trim_all()
click to toggle source
Returns a copy of string with all spaces removed.
@return [String] with all spaces trimmed which includes all leading, trailing and embedded spaces.
# File lib/core_extensions/string.rb, line 5 def trim_all self.gsub(/\s+/, "") end