10.3.6. rockmonk.net网站学习¶
It is conventional in Ruby to have ‘?’ at the end of the method if that method returns only boolean values.
In
if
andunless
statements,false
andnil
equate to false, Every other objects like say0
,""
are evaluated to be true.