Created
October 7, 2012 06:26
-
-
Save snowe2010/3847304 to your computer and use it in GitHub Desktop.
Removing blank lines from an array in ruby
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
lines_after_strip.reject! { |line| line.empty? } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment