Last active
June 2, 2016 13:57
-
-
Save mateuszef/a6a21119f9d886a8f416fb3d43053298 to your computer and use it in GitHub Desktop.
Module included twice in ancestor list
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 M | |
end | |
class A | |
include M | |
end | |
include M | |
puts A.ancestors.map { |con| con.object_id.to_s + ' ' + con.name} | |
Output: | |
46946332941400 A | |
46946332941440 M | |
46946332046900 Object | |
46946332941440 M | |
46946332046740 Kernel | |
46946332046940 BasicObject |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment