We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a2bd6 commit 5e92101Copy full SHA for 5e92101
README.md
@@ -55,6 +55,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
55
- [Finding The Source of Ruby Methods](ruby/finding-the-source-of-ruby-methods.md)
56
- [Limit Split](ruby/limit-split.md)
57
- [Parallel Bundle Install](ruby/parallel-bundle-install.md)
58
+- [Squeeze Out The Extra Space](ruby/squeeze-out-the-extra-space.md)
59
- [Summing Collections](ruby/summing-collections.md)
60
61
### vim
ruby/squeeze-out-the-extra-space.md
@@ -0,0 +1,8 @@
1
+# Squeeze Out The Extra Space
2
+
3
+Remove all the excess spaces from a string using the squeeze method:
4
5
+```ruby
6
+> "this is a string".squeeze(' ')
7
+=> "this is a string"
8
+```
0 commit comments