0

Object_id

Can someone explain me the .object_id meaning ? I don't know if this method exist in other languages but in ruby if I say like : letter = "h" puts letter.object_id It's output something like a this 20148326.

20th Jan 2019, 9:55 PM
Houssein Elmi Hassan
Houssein Elmi Hassan - avatar
1 Answer
+ 5
From this site: https://apidock.com/ruby/Object/object_id It says that basically the object_id is pretty much it....I mean each object will have an id as an integer. In your example, the object letter (which has a value of 'h') has an id of 20148326
20th Jan 2019, 10:03 PM
Uni
Uni - avatar