Understanding the Object_id Method in Ruby

Yair Fernando
Level Up Coding
Published in
3 min readFeb 11, 2021

--

Photo by mali maeder from Pexels

Ruby as many programming languages can create objects that we can use to store properties, methods and perform operations on them. In Ruby, everything is an object, strings, integers, boolean, hashes, arrays and instances of a class.

Each object has a bunch of public methods that we can use. In this article, we will focus mainly on one method — Object Id.

--

--