Programming Ruby: Chapter 6

  • Names of boolean methods are usually suffixed with a question mark.
  • Names of methods used to set values are usually suffixed with an equals sign.
  • Within a method body you can determine whether a block was passed by calling, guess what, block_given?.

Leave a Reply