Chapter 6. Ruby’s Code-Containing Structures

In This Chapter

Methods

Blocks, Procs, and Lambdas

Classes

Modules

With Ruby’s basic syntax only, we still find it hard to build a full Ruby application.

For example, sometimes when building an application you need to write the same code several times. If you really write it several times, you end up shortly with an impossible-to-maintain and buggy application. The solution to that is to write the code once in a central place and refer to it from several places.

Another common example is code design. One important task in building big applications is designing your code to make it more maintainable, efficient, and change-ready. We can’t implement such design decisions currently ...

Get IronRuby Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.