O'Reilly logo

Mastering Ruby Closures by Benjamin Tan Wei Hao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Welcome!

Welcome to the Ruby closures book! You have taken a very important step toward becoming a better Ruby developer.

Closures are used everywhere in Ruby, from simple scripts to the most popular web frameworks. You might have even been using closures without knowing it.

However, once you become familiar with closures and their features, they will start jumping out at you, and you’ll appreciate the ways in which closures enable expressive and beautiful programs. But closures do more than that, especially in Ruby. Closures allow you to extend the language by enabling you to write your own domain-specific languages, or DSLs.

This book will take you from being a consumer of beautiful libraries, APIs, and DSLs, to someone who understands, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required