O'Reilly logo

Beginning Ruby: From Novice to Professional by Peter Cooper

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. Classes, Objects, and Modules

In Chapter 2 we dived straight into the principles of object orientation, the method of representing concepts in Ruby by using classes and objects. Since then we've looked at Ruby's standard classes, such as String and Array; worked with them; and then branched off to look at Ruby's logic and other core features.

In this chapter the focus is back onto object orientation, but rather than looking at the concepts from afar, we'll be getting into the details. We'll look at why classes and objects behave the way they do, why object orientation is a viable development tool, how you can implement classes to match your own requirements, and how to override and extend the classes Ruby provides by default. Finally, ...

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