Created
November 27, 2012 17:51
-
-
Save anonymous/4155855 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
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