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
Module#ancestors now includes singletons themselves #1870
Since Ruby 2.1, calling #ancestors on a singleton class should now include the class itself in the chain.
Since BasicObject is at the very base of the ancestors, we also need to change the meta class of Object so that BasicObject's singleton class correctly get included in the chain.
This patch has been written by @bbrowning!
Have a nice day!