Last active
April 7, 2016 19:31
-
-
Save tribals/695f96adefd03e818a6203d08e49eec9 to your computer and use it in GitHub Desktop.
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
errors = [] | |
items = %w(one two three) | |
items.each do |i| | |
if i == 'two' | |
errors << 'ZOMG TEH ERRR!11' | |
end | |
puts i | |
end if errors.empty? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment