ruby逻辑判断符号

 

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.) 

posted on 2015-04-22 09:24  c3tc3tc3t  阅读(253)  评论(0编辑  收藏  举报