You are viewing a single comment's thread. Return to all comments →
I was confused with "..Ruby to identify the class to which the object belongs..." and was using type(obj) to get class of object, not sure if i was reading it wrong or the question could be written better
You just have to identify the class of object.
Similary there will be the class for obj.