It would be the second one. `!` has a [higher precedence](http://phrogz.net/ProgrammingRuby/language.html#operatorexpressions) than `||`.