Created
May 29, 2015 20:32
-
-
Save enebo/9b8ae58224e8daebce45 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
module A | |
def cvar | |
@@cvar = 1 | |
end | |
end | |
class B | |
include A.dup | |
end | |
B.new.cvar | |
p A.class_variables | |
p B.class_variables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment