F
forum
Hi all
def OtherClass
end
def MyClass < OtherClass
end
How can I check if MyClass extends OtherClass? When I have an instance I
can call my_class_instance.kind_of?(OtherClass), but what can I call
when only having the class name?
Thanks
Josh
def OtherClass
end
def MyClass < OtherClass
end
How can I check if MyClass extends OtherClass? When I have an instance I
can call my_class_instance.kind_of?(OtherClass), but what can I call
when only having the class name?
Thanks
Josh