It’s also good practice to use parenthesis to explicitly force the
precedence that you want rather than relying completely on a language’s
operator precedence. It will be easier for you or anyone else looking at
the code later to know the intent of the code.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.