Created
November 27, 2014 11:23
-
-
Save workmad3/840937e05850016baa40 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 Foo | |
module Bar | |
end | |
end | |
class Foo::Bar::Quux | |
end | |
class Foo::Bar::Buz | |
def fails | |
p Module.nesting | |
Quux.new | |
end | |
end | |
module Foo::Bar | |
class Buz | |
def succeeds | |
p Module.nesting | |
Quux.new | |
end | |
end | |
end | |
buz = Foo::Bar::Buz.new | |
buz.succeeds | |
buz.fails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment