Skip to content

Instantly share code, notes, and snippets.

@tribals
Last active April 7, 2016 19:31
Show Gist options
  • Save tribals/695f96adefd03e818a6203d08e49eec9 to your computer and use it in GitHub Desktop.
Save tribals/695f96adefd03e818a6203d08e49eec9 to your computer and use it in GitHub Desktop.
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