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.
7 8 9 |
# File 'lib/core_extensions/string.rb', line 7 def trim_all gsub(/\s+/, '') end |