Archives for the Date March 10th, 2008

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