-
-
Save drbrain/656501f5e4b45d68799b541f1e7f8165 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
$ ruby t.rb | |
[C, W, X, Y, Z, Object, Kernel, BasicObject] |
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
module W | |
end | |
module X | |
end | |
module Y | |
end | |
module Z | |
end | |
class C | |
include Z | |
include Y | |
include X | |
include W | |
end | |
p C.ancestors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment