You could define this yourself pretty easily--but keep in mind class can inherit from clazz without clazz being the direct superclass of class. For example, most things in Ruby inherit from Object, but for example Array inherits from both Enumerable and also from Object. How can you be sure you're getting the right thing?
If you want to check whether class inherits from clazz at all, try:
def inherits_from?(sub, sup)
sub.ancestors.include?(sup)
end
puts(inherits_from?(Array, Enumerable))
puts(inherits_from?(Array, Object))
This will print True twice, since the Array class includes the ancestor classes Object *and* Enumerable