1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-08 01:28:02 +00:00

Add Squeeze Out The Extra Space as a ruby til.

This commit is contained in:
jbranchaud
2015-04-29 20:28:18 -05:00
parent e1a2bd6663
commit 5e92101c6f
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# Squeeze Out The Extra Space
Remove all the excess spaces from a string using the squeeze method:
```ruby
> "this is a string".squeeze(' ')
=> "this is a string"
```