Skip to content

Instantly share code, notes, and snippets.

@zlu
Created July 23, 2013 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zlu/6064975 to your computer and use it in GitHub Desktop.
Save zlu/6064975 to your computer and use it in GitHub Desktop.
ruby next
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