O'Reilly logo

IronRuby Unleashed by Shay Friedman

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

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 ...

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