I wonder why ruby give and, or less precedence than &&, || , and assign operator? Is there any reason?
and
or
&&
||
They have very low precedence so that the operands don't have to be wrapped in parentheses, as is sometimes the case with && and ||.