The `<` operator does this (like in the `active_record?` check)

```ruby
[2] pry(main)> class MyKlass
[2] pry(main)*   include Mongoid::Document
[2] pry(main)* end
=> MyKlass
[3] pry(main)> MyKlass < Mongoid::Document
=> true
```