Create a gist now

Instantly share code, notes, and snippets.

%w(a b c).each do |e|
break if e == "b"
puts e
end
# >> a
%w(a b c).each do |e|
next if e == "b"
puts e
end
# >> a
# >> c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment