rockmonk.net网站学习

  • It is conventional in Ruby to have ‘?’ at the end of the method if that method returns only boolean values.
  • In if and unless statements, false and nil equate to false, Every other objects like say 0, "" are evaluated to be true.