What does the following code mean in Ruby?
||=
Does it have any meaning or reason for the syntax?
In short, a||=b means: If a is undefined, nil or false, assign b to a. Otherwise, keep a intact.
a||=b
a
undefined, nil or false
b