June 2014
Intermediate to advanced
536 pages
15h 18m
English
This chapter covers
As you’ve already seen in the case of method calls—where control of the program jumps from the spot where the call is made to the body of the method definition—programs don’t run in a straight line. Instead, execution order is determined by a variety of rules and programming constructs collectively referred to as control-flow techniques.
Ruby’s control-flow techniques include the following:
Read now
Unlock full access