SyntaxFix
Write A Post
Hire A Developer
Questions
||= is a conditional assignment operator
x ||= y
is equivalent to
x = x || y
or alternatively
if defined?(x) and x x = x else x = y end