J
Jcm Mz
That I can see; Pragmatic Programming Ruby's, index, has reference to
all sorts of symbols, but I can't find a explanation for a ',' seperator
such as used in the following:
var1 = 1; p var1 #=> 1
var2 = 2; p var2 #=> 2
var3 = 3; p var3 #=> 3
var1, var2, var3 = 5
p var1 #=> 5
p var2 #=> nil
p var3 #=> nil
What's happening here? I read it as:
set var1 to 5 and reset var2 and var3 to nil.
Is that all the comma does?
all sorts of symbols, but I can't find a explanation for a ',' seperator
such as used in the following:
var1 = 1; p var1 #=> 1
var2 = 2; p var2 #=> 2
var3 = 3; p var3 #=> 3
var1, var2, var3 = 5
p var1 #=> 5
p var2 #=> nil
p var3 #=> nil
What's happening here? I read it as:
set var1 to 5 and reset var2 and var3 to nil.
Is that all the comma does?