Objects, Classes, and Methods
Prepare to learn more about objects, classes, and methods.
We'll cover the following
We’ve discussed objects at length, using that term as a synonym for “things.” We’ve learned to do stuff with simple objects such as numbers and strings and the more sophisticated data structures, arrays, and hashes. We’ve also learned about methods and how to use them.
We’re now well prepared to look closer at objects, classes (types of things), and methods, and how they relate to each other.
A common Ruby quote
As a side note, you may have heard the following. Ruby programmers love saying it: in Ruby, everything is an object.
This is somewhat inaccurate. There are a few things that aren’t objects.