check all ancestors of class

Only works if `@subject` is a class always (is it?) - otherwise one can simply check `@subject.is_a?(Class) && subject.class <= @subject`.