January 2024
Intermediate to advanced
718 pages
20h 15m
English
From the examples we’ve shown so far, you may be wondering about our earlier assertion that Ruby is an object-oriented language. Well, here is where we justify that claim. We’re going to be looking at how you create classes and objects in Ruby and at some of the ways that Ruby is more flexible than other object-oriented languages.
In Ruby Is an Object-Oriented Language, we state that everything we manipulate in Ruby is an object. And every object in Ruby was instantiated either directly or indirectly from a class. In this chapter, we’ll look in more depth at creating and manipulating those classes.
Read now
Unlock full access