Ruby: a ||= b

a ||= b

means

a = b if a.nil? || a == false

Leave a Reply


linkboost