puts true and false #相当于 (puts true) and false
Use &&/|| for boolean expressions, and/or for control flow. (Rule of thumb: If you have to use outer parentheses, you are using the wrong operators.)
ruby逻辑判断符号
原文:http://www.cnblogs.com/or2-/p/4446405.html