Created
July 23, 2013 18:39
-
-
Save zlu/6064975 to your computer and use it in GitHub Desktop.
ruby next
This file contains hidden or 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
for i in 0..5 do; if i < 4; next; else; p 'hi'; end; end | |
=> 'hi' | |
'hi' | |
1.next | |
=> 2 | |
next can't be used as a variable name but can be used as a method name. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment