Skip to content

Instantly share code, notes, and snippets.

@farmdawgnation
Forked from anonymous/gist:4155855
Created November 27, 2012 17:52
Show Gist options
  • Save farmdawgnation/4155859 to your computer and use it in GitHub Desktop.
Save farmdawgnation/4155859 to your computer and use it in GitHub Desktop.
def test1
[1,2,3,4,5].each do |item|
next if item == 3
puts item
end
end
def test2
[1,2,3,4,5].each do |item|
return if item == 3
puts item
end
end
test1
sleep 1
puts ""
test2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment