[MacRuby-devel] is_a? method

Robert Rice rice.audio at pobox.com
Wed Jan 19 13:06:34 PST 2011


Hi:

I notice that the obj.is_a? method does not work on a class constant. It only works on an instance of the class.

Is this the way it should work? Do I need to create a loop checking using the superclass method to check the inheritance of a class or is there an easier way?

Thanks,
Bob Rice



More information about the MacRuby-devel mailing list