Ruby “or” vs. “||” gotcha

In irb:

>> truth = nil or true
=> true
>> truth
=> nil
>> truth = nil || true
=> true
>> truth
=> true

  1. hacking-shindyapin posted this