Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/fundler/fundler_utils.rb
Instance Method Summary collapse
Instance Method Details
#squish ⇒ Object
9 10 11 |
# File 'lib/fundler/fundler_utils.rb', line 9 def squish dup.squish! end |
#squish! ⇒ Object
13 14 15 16 17 |
# File 'lib/fundler/fundler_utils.rb', line 13 def squish! strip! gsub!(/\s+/, ' ') self end |