O'Reilly logo

Ruby Quick Syntax Reference by Matt Clements

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 8

image

Objects

In the previous chapters we discussed individual data types within the Ruby programming language and how these all work individually. The final data type we will look at is the Object data type. The Object data type (also known as BasicObject) mixes with the Kernel module to import a number of useful methods, which can be utilized for variousscenarios within Ruby programming.

2.1.1 :001 > self.class => Object

Objects are also associated to Object-Oriented Programming. Object orientation is an alternative to the procedural method of programming. Procedural code runs from top to bottom in a very simple and linear way. Object-Oriented ...

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