Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Class with prepended module is its own superclass #3276
When a class has prepended a module, the superclass is reported as itself.
module M; end class C prepend M end C.superclass # => C (in JRuby 220.127.116.11) # => Object (in MRI 2.2.3)
It looks as though we are walking up the inheritance chain and returning the first non-module we find.