W
walter
Hi,
is there a reliable way to find the Object's Class. I know about
class and type, but what happens if they are overridden?
how do you find it then?
for instance how to find the class at runtime for the following :
class Obj
def class
"Not My Class"
end
def type
"don't look here for it"
end
end
I am sure it is very simple, I just can't seem to find it.
Any hints would be greatly appreciated.
Thanks,
Walt
*****************************************************
Walter Szewelanczyk
IS Director
M.W. Sewall & CO. email : (e-mail address removed)
259 Front St. Phone : (207) 442-7994 x 128
Bath, ME 04530 Fax : (207) 443-6284
*****************************************************
is there a reliable way to find the Object's Class. I know about
class and type, but what happens if they are overridden?
how do you find it then?
for instance how to find the class at runtime for the following :
class Obj
def class
"Not My Class"
end
def type
"don't look here for it"
end
end
I am sure it is very simple, I just can't seem to find it.
Any hints would be greatly appreciated.
Thanks,
Walt
*****************************************************
Walter Szewelanczyk
IS Director
M.W. Sewall & CO. email : (e-mail address removed)
259 Front St. Phone : (207) 442-7994 x 128
Bath, ME 04530 Fax : (207) 443-6284
*****************************************************