Test whether a Ruby class is a subclass of another class October 15, 2022 by Tarik Just use the < operator B < A # => true A < A # => false or use the <= operator B <= A # => true A <= A # => true