Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
parallel assignment discussed here: http://ruby.zigzo.com/2013/01/16/parallel-assignment/
var1, var2 = [1, 2] # var1 = 1; var2 = 2
var1, var2 = 1, 2 # var1 = 1; var2 = 2
var1, var2 = 1 # var1 = 1; var2 = nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment