What does single vertical bar and equals bar mean in Ruby? -


this question has answer here:

in ruby, |= operator do?

example:

a = 23 |= 3333 # => 3351 

the single vertical bar bitwise or operator.

a |= 3333 equivalent a = | 3333


Comments