Inspectopedia Help

Module used as superclass

Reports modules used in superclass clauses. Superclass clauses are only allowed to reference classes.

A quick fix is available to remove the invalid superclass clause.


# Module 'Kernel' used as a superclass class Example < Kernel end

After the quick fix:

class Example end

Inspection Details

Available in:

Qodana for Ruby 2023.3, RubyMine 2023.3


Ruby, 233.SNAPSHOT

Last modified: 13 July 2023