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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.