Skip to content

Instantly share code, notes, and snippets.

@kohsuke
Created November 26, 2013 02:02
Show Gist options
  • Save kohsuke/7652375 to your computer and use it in GitHub Desktop.
Save kohsuke/7652375 to your computer and use it in GitHub Desktop.
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