Created
October 17, 2012 03:14
-
-
Save willglynn/3903510 to your computer and use it in GitHub Desktop.
Nesting modules within a class
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
class SomeClass; end | |
module SomeClass::NestedModule; end | |
puts SomeClass.class | |
puts SomeClass::NestedModule.class | |
# prints: | |
# Class | |
# Module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment