Created
September 25, 2012 01:35
-
-
Save havenwood/3779479 to your computer and use it in GitHub Desktop.
string is nil in your example
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
wars = %w{ prussian civil WWII cold_war vietnam } | |
en = wars.enum_for(:inject, "Names of Wars: ") | |
en.each do |string, war| | |
puts string.inspect | |
puts war | |
puts | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment