Tag Archives: Blocks

Constructing Blocks

Blocks are code contained within the braces that if used with the last post’s example would be associated with the call to the function threeTimes. Within the defined method a call for yield is called three times in a row wherein each time a call to the block is sent the greeting is displayed which [...]

Posted in Development, Programming Basics | Also tagged | Comments closed