Will every && run before if on the same line in Ruby?
For example:
@building.approved = params[:approved] if xyz && abc && mno...
Can an unlimited number of && be used on the right side of an if without using parentheses?
I'm inclined to use parentheses but I'd like to understand the default behaviour.
Aucun commentaire:
Enregistrer un commentaire