Created
November 26, 2013 02:02
-
-
Save kohsuke/7652375 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 | |
class Zot | |
def hello | |
puts "Hello from Zot" | |
end | |
end | |
end | |
end | |
module A | |
module B | |
Zot = Foo::Bar::Zot | |
class C | |
def test | |
Zot.new.hello | |
puts Zot | |
end | |
end | |
end | |
end | |
A::B::C.new().test() | |
A::B::Zot # I don't want this to resolve! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment