T
trans. (T. Onoma)
Can anyone help me understand why these are not the same, and how to fix?
class Object
def object_hexid
return "0x#{'%x'%(self.__id__)}"
end
end
o.inspect
=> "#<Object:0x40335764>"
o.object_hexid
=> "0x2019abb2"
Thanks,
T.
class Object
def object_hexid
return "0x#{'%x'%(self.__id__)}"
end
end
o.inspect
=> "#<Object:0x40335764>"
o.object_hexid
=> "0x2019abb2"
Thanks,
T.