Created
March 16, 2012 05:39
-
-
Save hughevans/2048694 to your computer and use it in GitHub Desktop.
Reject blank/empty strings before joining with a space.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[' ', 'Evans'].reject(&:blank?).join ' ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While this is helpful, it does add a bit more time to execution.. :) over 1M records that is... (https://gist.github.com/2048697)