Created
April 7, 2015 17:08
-
-
Save jah2488/e1eae202c0724a9f85b4 to your computer and use it in GitHub Desktop.
If you find yourself wanting to write this code, you are probably missing an abstraction, but I like that this is possible either way.
This file contains hidden or 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
| articles.each do |article| | |
| puts article | |
| end.empty? and begin | |
| puts ‘sorry, no articles’ | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment