Ruby: a ||= b – flip's

Ruby: a ||= b

a ||= b

means

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

Leave a Reply