A Brain-Friendly Report
Unannounced and unmarked, blocks turn up all over Ruby programs. Their use ranges from some of Ruby's most basic structures, such as loops, to some of its most sophisticated tricks. Similar to closures or lambdas in other languages, blocks enable some of Ruby's vaunted efficiency. Blocks even allow other people to write some of the code you use.
With this excerpt from Head First Ruby, you'll learn about blocks by looking at each concept from different angles. Exercises throughout will help you understand and remember how these closure-like structures work. In fact, these exercises are key component to our unique, hands-on Head First approach.
<ul><li>Bend your mind around blocks and methods</li><li>Build blocks into larger structures</li><li>Do heavy lifting easily with blocks</li><li>Get more done with less code</li></ul>
Book Download and Read Links
- Title: Using Blocks in Ruby
- Subtitle: A Brain-Friendly Report
- Authors: Jay McGavren
- Publisher: O'Reilly Media
- ISBN: 9781491969151, 1491969156
- Paperback: 25 pages
- Publication date: 2017
- License: CC BY