Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/core_extensions/string.rb
Instance Method Summary collapse
-
#trim_all ⇒ String
Returns a copy of string with all spaces removed.
Instance Method Details
#trim_all ⇒ String
Returns a copy of string with all spaces removed.
5 6 7 |
# File 'lib/core_extensions/string.rb', line 5 def trim_all self.gsub(/\s+/, "") end |