> test = false and true
=> false
> test
=> false
> test = true and false #this is the point I don't understand!
=> false
> test
=> true
为什么 ruby 会以这种方式运行,我该如何正确使用它才不会遇到这个问题?
> test = false and true
=> false
> test
=> false
> test = true and false #this is the point I don't understand!
=> false
> test
=> true
为什么 ruby 会以这种方式运行,我该如何正确使用它才不会遇到这个问题?