In Ruby, why does inspect() print out some kind of object id which is different from what object_id() gives? In Ruby, why does inspect() print out some kind of object id which is different from what object_id() gives? ruby ruby