Skip to content

Instantly share code, notes, and snippets.

Created November 27, 2012 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4155855 to your computer and use it in GitHub Desktop.
Save anonymous/4155855 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