-
-
Save edisonywh/f2f97a30c5f24bb6a4e8f93e55c9be2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HiddenModule = Module.new | |
class Foo | |
extend HiddenModule | |
end | |
Foo.singleton_class.ancestors #=> [#<Class:Foo>, HiddenModule, #<Class:Object>, #<Class:BasicObject>, Class, Module, Object, Kernel, BasicObject] | |
# Well HiddenModule is not so hidden anymore! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment