Perfect or not, It will take care of my problem. Thanks, Walt > Hi, > > In message "reliable way of finding Objects Class?" > on 03/07/17, walter / mwsewall.com <walter / mwsewall.com> writes: | > |is there a reliable way to find the Object's Class. I know about > |class and type, but what happens if they are overridden? > > This is not perfect but working way: > > c = Object.instance_method(:class) > class Foo > def class > nil > end > end > f = Foo.new > p f.class # => nil > p c.bind(f).call # => Foo > matz. > ***************************************************** Walter Szewelanczyk IS Director M.W. Sewall & CO. email : walter / mwsewall.com 259 Front St. Phone : (207) 442-7994 x 128 Bath, ME 04530 Fax : (207) 443-6284 *****************************************************