-
-
Save xcobar/d9a19ee8ad693bf7f2c9384e12b4025b 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 | |
module B | |
module C | |
class D | |
def self.shout | |
"HEY!" | |
end | |
end | |
end | |
end | |
end | |
m = A::B::C::D | |
# How do I output A, parent of B, through variable "m"? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment